![]() ![]() |
Apr 18 2006, 09:45 AM
Post
#1
|
|
|
Group: Members Posts: 639 Joined: 4-September 03 From: Chicago Member No.: 401 |
I'm using mpd & ncmpc to play mp3s which is working pretty well. Only problems are:
The matchbox volume applet doesn't control volume. I have to run alsamixer to adjust volume. Is there a better way? Also, I'm looking for a way to prevent auto suspend when I close the screen on my 3100. Is there a way to blank the screen & keep the Z from suspending so it can be put in your pocket while it's functioning as an mp3 player? TIA Jerry |
|
|
|
Apr 19 2006, 01:03 AM
Post
#2
|
|
|
Group: Members Posts: 4,515 Joined: 25-October 03 From: Bath, UK Member No.: 464 |
QUOTE Also, I'm looking for a way to prevent auto suspend when I close the screen on my 3100. Is there a way to blank the screen & keep the Z from suspending so it can be put in your pocket while it's functioning as an mp3 player? I understand that this functionality has been added in the latest incarnation of zaurusd. Si |
|
|
|
Apr 19 2006, 09:26 AM
Post
#3
|
|
|
Group: Members Posts: 639 Joined: 4-September 03 From: Chicago Member No.: 401 |
QUOTE(lardman @ Apr 19 2006, 03:03 AM) Hmm, in looking at the scripts in /etc/zaurusd/scripts, notably zaurus-hinge, I see where if it detect the hinge state is "closed" it issues a apm -s. I'd like to change that to turn off the backlight instead. Is there a way to do this? Lardman will your bl binary be able to do this? http://people.bath.ac.uk/enpsgp/Zaurus/bl/...-r0_armv5te.ipk I assume I could set it to 0, but how to cancel when hinge is open... |
|
|
|
Apr 19 2006, 10:30 AM
Post
#4
|
|
|
Group: Members Posts: 126 Joined: 4-May 05 From: Lynnwood, WA, US Member No.: 7,070 |
Since I didn't know about the new zaurusd I hacked up my zaurus-hinge script the other day to provide this funcionality.
Here are the parts I changed: CODE if [ $STATE = "3" ]; then echo 0 > /sys/class/backlight/corgi-bl/brightness fi and at the top of the "landscape" section (under "if [ $STATE = "0" ]; then" ) I added: CODE echo 30 > /sys/class/backlight/corgi-bl/brightness Brightness is 0 (off) to 47 (full bright). Poke around at the other files in /sys/class/backlight/corgi-bl/ to find fun stuff like max_brightness, etc. Anyways, this little hack should get you by until the new zaurusd comes out. BTW, if you close the Zaurus, then suspend it, then open it, then resume it (in that order), you'll end up with the Zaurus resumed with the backlight off. In that case close the lid, wait a couple seconds and re-open it to make the backlight come on again. You might find other problems with the way I did this since it was just a quick hack to let me listen to music on the go rather than a real fix. |
|
|
|
Apr 20 2006, 12:37 AM
Post
#5
|
|
|
Group: Members Posts: 4,515 Joined: 25-October 03 From: Bath, UK Member No.: 464 |
QUOTE Is there a way to do this? Lardman will your bl binary be able to do this? My bl modification was just a temporary hack to get the backlight power management working correctly under GPE. I'm hopeful that this is no longer necessary (though I've not tried letting the machine auto suspend so I'm not sure.) I remember hrw bringing up this zaurusd issue with RP (that of suspending when closing the lid) and he said he'd make it optional - I guess the new script is available in the OE metadata now and will be installed in any new images (alternatively ask hrw to provide that package in the upgrades thread.) Si |
|
|
|
Apr 20 2006, 12:47 AM
Post
#6
|
|
|
Group: Members Posts: 327 Joined: 28-February 06 From: South East of South Australia Member No.: 9,251 |
is there a package for opie that can lock the screen and or blank it ??
|
|
|
|
May 17 2006, 04:41 PM
Post
#7
|
|
|
Group: Members Posts: 62 Joined: 5-September 05 Member No.: 8,042 |
QUOTE(jerrybme @ Apr 18 2006, 12:45 PM) I'm using mpd & ncmpc to play mp3s which is working pretty well. Only problems are: The matchbox volume applet doesn't control volume. I have to run alsamixer to adjust volume. Is there a better way? --- TIA Jerry Is there a bug on this somewhere? I wouldn't even know what "package" to say the bug was in. I should note that GPE-mixer - the mixer application in the "Other" folder in matchbox - DOES work to adjust volume, but strangely. Volume seems to bottom out to nothing at 80%. alsamixer does this too. |
|
|
|
Sep 20 2006, 08:19 PM
Post
#8
|
|
|
Group: Members Posts: 62 Joined: 5-September 05 Member No.: 8,042 |
QUOTE(JohnX @ Apr 19 2006, 01:30 PM) Since I didn't know about the new zaurusd I hacked up my zaurus-hinge script the other day to provide this funcionality. Here are the parts I changed: CODE if [ $STATE = "3" ]; then echo 0 > /sys/class/backlight/corgi-bl/brightness fi and at the top of the "landscape" section (under "if [ $STATE = "0" ]; then" ) I added: CODE echo 30 > /sys/class/backlight/corgi-bl/brightness Brightness is 0 (off) to 47 (full bright). Poke around at the other files in /sys/class/backlight/corgi-bl/ to find fun stuff like max_brightness, etc. Anyways, this little hack should get you by until the new zaurusd comes out. BTW, if you close the Zaurus, then suspend it, then open it, then resume it (in that order), you'll end up with the Zaurus resumed with the backlight off. In that case close the lid, wait a couple seconds and re-open it to make the backlight come on again. You might find other problems with the way I did this since it was just a quick hack to let me listen to music on the go rather than a real fix. This should really be made part of the default build. |
|
|
|
Sep 21 2006, 12:52 AM
Post
#9
|
|
|
Group: Members Posts: 4,515 Joined: 25-October 03 From: Bath, UK Member No.: 464 |
You could add it to the bugtracker as an "enhancement" type bug.
Si |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th May 2013 - 12:43 AM |