[DEV] ArchLinux on the TF300T(G)

Valantur

Senior Member
Aug 19, 2010
101
31
28
I've found pulseaudio hanging as well, but I can't seem to remove it because it's integrated with GNome. As far as mixer apps, none of them seem to work. If I run alsamixer from the console I can't change anything because it uses Fkeys for changing values which are not mapped on the TF300T. I was able to find the F6 key but I can't select the file1 [tegracodec ]: tegra-codec - tegra-codec.

Any help would be greatly appreciated.

Edit: Also tried alsamixer -c1 and it hangs
Yeah, Alsamixer hangs because there's a process run by systemd at boot time that tries to restore the state (sound levels) of each channel to the value they had before shutting off. The problem is that the process fails and it hangs the whole audio system.

What I did was disable the store and restore of those values, by "masking" alsa store and alsa restore in systemd. Google for "mask systemd service". What you actually do is create a symlink pointing to null for those services, so when they get called no code is actually executed.
Look for more info on systemd on internet while checking out /etc/systemd and /lib/systemd.

I wouldn't know how to help you with pulse as I'm using xfce without it.
 
  • Like
Reactions: droidgirl74

droidgirl74

Senior Member
Sep 9, 2011
112
15
0
AW: [DEV] ArchLinux on the TF300T(G)

Does anybody know what is missing to get suspend to work? It's the only thing that stops me from taking the device with me every day... even the Nexus 7 with Ubuntu is able to suspend.

Gesendet von meinem GT-I9300 mit Tapatalk 2
 

Valantur

Senior Member
Aug 19, 2010
101
31
28
Does anybody know what is missing to get suspend to work? It's the only thing that stops me from taking the device with me every day... even the Nexus 7 with Ubuntu is able to suspend.

Gesendet von meinem GT-I9300 mit Tapatalk 2
Even the Nexus 7 with Ubuntu? OMG we suck hard!! how can Canonical with their hundreds of developers (many of them under a salary) beat us??

(Couldn't find :facepalm: emoticon)

Arch for the Transformer Pad is being ported by one dev only (cb22) so if you ask me, what we need is more people who are willing to try to make things work, contribute to this thread with whatever they did to make their Arch better and last but not least, don't complain or give anything for granted.

Cheers
 
  • Like
Reactions: zaki0saad

droidgirl74

Senior Member
Sep 9, 2011
112
15
0
Even the Nexus 7 with Ubuntu? OMG we suck hard!! how can Canonical with their hundreds of developers (many of them under a salary) beat us??

(Couldn't find :facepalm: emoticon)

Arch for the Transformer Pad is being ported by one dev only (cb22) so if you ask me, what we need is more people who are willing to try to make things work, contribute to this thread with whatever they did to make their Arch better and last but not least, don't complain or give anything for granted.

Cheers
Whats your problem, Mr. Facepalm? Any problem with non-native speakers? Or just trolling around? What I meant wasn't to complain, this was just a normal question to me. Have been searching for a hack to get suspend to work for some days now...
And with "even the nexus 7" I meant that even the nexus 7 is no native Linux device, so this should be doable.
And if you don't know how facepalm, you can take this for the meantime: m(
 

ColMustard

Senior Member
Jan 28, 2012
237
68
0
North of Boston, MA
Yeah, Alsamixer hangs because there's a process run by systemd at boot time that tries to restore the state (sound levels) of each channel to the value they had before shutting off. The problem is that the process fails and it hangs the whole audio system.

What I did was disable the store and restore of those values, by "masking" alsa store and alsa restore in systemd. Google for "mask systemd service". What you actually do is create a symlink pointing to null for those services, so when they get called no code is actually executed.
Look for more info on systemd on internet while checking out /etc/systemd and /lib/systemd.

I wouldn't know how to help you with pulse as I'm using xfce without it.
Thanks for the leading me in this direction. Sadly though after creating the symbolic links using ln -s for both alsa-restore and alsa-store, alsamixer -c1still hangs on me and gives me no way to setup the sound card. One thing that does work for me now is the Shutdown and Restart.
 

Keshukas

Senior Member
Aug 22, 2010
151
50
0
Last edited:
  • Like
Reactions: -angel*

ColMustard

Senior Member
Jan 28, 2012
237
68
0
North of Boston, MA
In an effort to try an fix the sound card for the TF300T, I was wondering if someone with working sound could either post the following files or the contents of these files so I can do a compare for differences:

/var/lib/alsa/asound.state
/etc/modprobe.d/alsa-base.conf
/etc/asound.conf

Thanks in advance.
 

cb22

Senior Member
Dec 4, 2006
74
164
33
Whats your problem, Mr. Facepalm? Any problem with non-native speakers? Or just trolling around? What I meant wasn't to complain, this was just a normal question to me. Have been searching for a hack to get suspend to work for some days now...
And with "even the nexus 7" I meant that even the nexus 7 is no native Linux device, so this should be doable.
And if you don't know how facepalm, you can take this for the meantime: m(
Suspend is an issue due to wakelocks at the moment. Since we are running an Android kernel, they still exist, and are a pain in the behind. Ubuntu's kernel doesn't have them compiled in (to the best of my knowledge, I could be wrong...) And I was playing around with a little hack to disable them via a proc interface.

Someone mentioned they had suspend and resume working fine over at the bug report - https://bitbucket.org/cb22/archlinuxarm-tf300/issue/3/no-suspend-support

However, for me it results in a "suspend loop". There's an easy way to test this - simply su to root, make sure you've saved everything and ran sync a few times, then run pm-suspend. If the tablet suspends, and pressing the power button turns it on, great - let me know.
 
  • Like
Reactions: droidgirl74

ColMustard

Senior Member
Jan 28, 2012
237
68
0
North of Boston, MA
Suspend is an issue due to wakelocks at the moment. Since we are running an Android kernel, they still exist, and are a pain in the behind. Ubuntu's kernel doesn't have them compiled in (to the best of my knowledge, I could be wrong...) And I was playing around with a little hack to disable them via a proc interface.

Someone mentioned they had suspend and resume working fine over at the bug report - https://bitbucket.org/cb22/archlinuxarm-tf300/issue/3/no-suspend-support

However, for me it results in a "suspend loop". There's an easy way to test this - simply su to root, make sure you've saved everything and ran sync a few times, then run pm-suspend. If the tablet suspends, and pressing the power button turns it on, great - let me know.
Pretty much the same for me, pm-suspend does suspend, however power button attempts to wake (screen flashes) but fails.
 

dragonnn

Senior Member
Oct 16, 2011
1,135
861
0
The device is getting in suspended loop, it seems that the Android and Linux suspend are in conflict, I have made some video and photos of kernel messages when running pm-suspend:
https://dl.dropbox.com/u/1664131/VID_20130219_215442.m4v
https://dl.dropbox.com/u/1664131/IMG_20130219_215610.jpg
https://dl.dropbox.com/u/1664131/IMG_20130219_215626.jpg
https://dl.dropbox.com/u/1664131/IMG_20130219_215635.jpg
Maybe this can help, cb22 do you know with module/part of kernel code can cause this problem? I think making in it an bool, give if before this code, and exporting this bool as module parameter can help us, I already did this many times, but I need to know with part of code can made this problem.
 
  • Like
Reactions: droidgirl74

rickavers42

Member
Dec 18, 2011
27
6
0
Youngstown
Yes, We need ubuntu!

Ubuntu for tablets (developer preview) is about to be made available for Nexus 7 http://www.webupd8.org/2013/02/canonical-unveils-new-ubuntu-tablet.html
Hope someone can port it to our TF300.

Sorry for the OT
Definitely, Arch is by far the ****tiest OS I have ever used. Way too unstable and their packages, at least the ARM V7 applications anyway, most are returning 404 errors. Not hating on cb22 though, this is still better than nothing. Ubuntu would be amazing!
 

dragonnn

Senior Member
Oct 16, 2011
1,135
861
0
Odp: [DEV] ArchLinux on the TF300T(G)

WOW! Update the package databases (pacman -Sy) for the 404. Arch isn't for Linux noobs :/, and if it unstable for you read the topic title it is DEV! So go away and don't spam about ubuntu...

Sent from my GALAXY Cooper
 

hamed_tt

Member
Jan 4, 2010
11
0
0
esf
I installed Ubuntu on my PC for a long time (~4 years) and it was good ,And now I'm experiencing something new with Arch , it looks great (fast ، stable , Flexible ، light) , It is suitable for small systems. (Such as microcontrollers).:good:
 
Last edited:

cb22

Senior Member
Dec 4, 2006
74
164
33
The device is getting in suspended loop, it seems that the Android and Linux suspend are in conflict, I have made some video and photos of kernel messages when running pm-suspend:
https://dl.dropbox.com/u/1664131/VID_20130219_215442.m4v
https://dl.dropbox.com/u/1664131/IMG_20130219_215610.jpg
https://dl.dropbox.com/u/1664131/IMG_20130219_215626.jpg
https://dl.dropbox.com/u/1664131/IMG_20130219_215635.jpg
Maybe this can help, cb22 do you know with module/part of kernel code can cause this problem? I think making in it an bool, give if before this code, and exporting this bool as module parameter can help us, I already did this many times, but I need to know with part of code can made this problem.
Hmm. A good start would be disabling wakelock support in the kernel (this will break Android) and seeing if that allows us to get suspend / resume. After that, we could look at maybe having a parameter that enables / disables checking of wakelocks based on a setting in /sys / /proc or wherever.


Definitely, Arch is by far the ****tiest OS I have ever used. Way too unstable and their packages, at least the ARM V7 applications anyway, most are returning 404 errors. Not hating on cb22 though, this is still better than nothing. Ubuntu would be amazing!
Sorry, but I have no interest in porting Ubuntu. The "ground work" is mostly done, if someone is interested in getting Ubuntu running, it really wouldn't be that much effort. However, that person is not going to be me.

Also, quite a few of the crashes / instabilities (such as X dying) are due to interactions between the Tegra userspace and kernel drivers. Moving to Ubuntu won't help with that.
 

lvlrdka22

Senior Member
Nov 12, 2012
92
25
0
Definitely, Arch is by far the ****tiest OS I have ever used. Way too unstable and their packages, at least the ARM V7 applications anyway, most are returning 404 errors. Not hating on cb22 though, this is still better than nothing. Ubuntu would be amazing!
Before you go around bashing a specific OS, might want to make sure first that it's the OS's fault, and that the alternative won't/doesn't experience a similar thing.
As previously stated, Arch isn't for the faint-of-heart, neither are stuff that are still in development.
Sorry, but I have no interest in porting Ubuntu. The "ground work" is mostly done, if someone is interested in getting Ubuntu running, it really wouldn't be that much effort. However, that person is not going to be me.

Also, quite a few of the crashes / instabilities (such as X dying) are due to interactions between the Tegra userspace and kernel drivers. Moving to Ubuntu won't help with that.
Long live Arch!
 
Last edited:

cb22

Senior Member
Dec 4, 2006
74
164
33
Hmm. A good start would be disabling wakelock support in the kernel (this will break Android) and seeing if that allows us to get suspend / resume. After that, we could look at maybe having a parameter that enables / disables checking of wakelocks based on a setting in /sys / /proc or wherever.
I actually just tried this, and it works! A bit more digging will be needed to get this working with a dualboot solution - but it should definitely be doable.
 

dragonnn

Senior Member
Oct 16, 2011
1,135
861
0
Odp: [DEV] ArchLinux on the TF300T(G)

Great, with config option did you exactly disabled? Based on it we can find the code with we need to disable.

Sent from my GALAXY Cooper