Author Topic: Closing Lid Setting  (Read 18787 times)

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Closing Lid Setting
« Reply #15 on: December 06, 2007, 01:15:33 pm »
Quote from: speculatrix
Quote from: jpmatrix
what is the difference between

echo 1 > /sys/class/backlight/corgi-bl/power

and

apm -s

?

is it a low sleep instead of deep sleep ?

the "echo" line turns off the power to the backlight.. this is separate to the brightness control which has the bug where setting backlight to minimum can cause it to go off - probably a hardware problem and a different setting again!

I put both backlight off and minimum brightness in my screen-close script so that you can leave the Z running in as low power mode as possible yet play mp3s etc.

ok
thanks for this great news! i try it right now!
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Closing Lid Setting
« Reply #16 on: December 06, 2007, 02:36:37 pm »
Quote from: speculatrix
echo 1 > /sys/class/backlight/corgi-bl/power

it seems this is in fact a directory with "wakeup" in it
i guess we should read :

echo 1 > /sys/class/backlight/corgi-bl/power/wakeup

i try!
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Closing Lid Setting
« Reply #17 on: December 06, 2007, 02:44:00 pm »
Quote from: jpmatrix
Quote from: speculatrix
echo 1 > /sys/class/backlight/corgi-bl/power

it seems this is in fact a directory with "wakeup" in it
i guess we should read :

echo 1 > /sys/class/backlight/corgi-bl/power/wakeup

i try!

no luck.
there's also a /sys/class/backlight/corgi-bl/bl_power    but i've permission denied trying to echo in it....
any help?
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

dlj0

  • Full Member
  • ***
  • Posts: 218
    • View Profile
Closing Lid Setting
« Reply #18 on: December 07, 2007, 12:14:30 am »
Quote from: jpmatrix
Quote from: dlj0
-- well, using the machine with the "portrait mode" where the keys are hidden is kinda pointless without a virtual keyboard, anyway --

solution for that (virtual keyboard) is here :

https://www.oesf.org/forum/index.php?showtopic=24993

OK, I have it all set up and running correctly, though I did have to install a catalan config file (english was not available....).  OK, since I will probably learn some Catalan next Spring anyway, I guess that is good.  But weird.

However, every time I re-boot or login, I have to re-start /etc/init.d/zaurusd  in order to straighten out the screen.  There is some sort of error message on the screen if I kill the X server about Xlib.  If I had to guess I would say that I need to run the zaurusd script after the X server starts, but that is not the way it happens.  

I could straighten out the server by replacing the angle option on the call to the server --- currently it is exec /usr/bin/Xfbdev -screen 480x640 "$@"  but was exec /usr/bin/Xfbdev -screen 480x640@270  "$@" before I re-instituted zaurusd.  But this it not available for the xdm screen, and not when I first login, either.  I have to start the daemon again, even though it is in /etc/rc2.d

Any clues?  Where in the start order is your /etc/rc2.d/S**zaurusd   (that is, what goes where the ** is)?  Does this all work for someone?  In order to get the shifted screen for the closed mode, I need to fix this.
Zaurus:  SL C3100
ROM:  eabi debian/sid

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Closing Lid Setting
« Reply #19 on: December 07, 2007, 06:00:40 am »
Quote from: dlj0
However, every time I re-boot or login, I have to re-start /etc/init.d/zaurusd  in order to straighten out the screen.  There is some sort of error message on the screen if I kill the X server about Xlib.  If I had to guess I would say that I need to run the zaurusd script after the X server starts, but that is not the way it happens.

yes, i've same problem and when i try to load it after X loads i've some permission problems, although login to X with root...
i'm thinking about replacing our whole /etc/zaurusd directory with the one from latest angstrom...as i run angstrom kernel...
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

citro

  • Newbie
  • *
  • Posts: 8
    • View Profile
Closing Lid Setting
« Reply #20 on: December 08, 2007, 07:17:13 pm »
Quote from: jpmatrix
Quote from: jpmatrix
Quote from: speculatrix
echo 1 > /sys/class/backlight/corgi-bl/power

it seems this is in fact a directory with "wakeup" in it
i guess we should read :

echo 1 > /sys/class/backlight/corgi-bl/power/wakeup

i try!

no luck.
there's also a /sys/class/backlight/corgi-bl/bl_power    but i've permission denied trying to echo in it....
any help?

the correct command is

echo 0 > /sys/class/backlight/corgi-bl/brightness

this will turn off the backlight... then when you open the lid again, simply press Fn+4 to increase the bright.
SL-C700 = Altbooting Angstrom 2.6.21 on nand and Debian EABI Filesystem on SD with 178MB Swap on second SD partition.
SL-C3200 = Running debian EABI from the microdrive / kernel Angstrom 2.6.23 / Sid
D-Link DCF-660W Wireless card
Linksys WCF12 wireless card (working issues)
1GB CF Microdrive
1GB Lexar SD Card
128MB Lexar SD Card

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Closing Lid Setting
« Reply #21 on: December 13, 2007, 12:58:25 pm »
little problem : when you close the lid outside of X, the screens shut off. but when you open it again it remains dark
any way to correct that ?
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

LinuxGadget

  • Newbie
  • *
  • Posts: 44
    • View Profile
Closing Lid Setting
« Reply #22 on: December 18, 2007, 12:53:50 pm »
Strange  , it's working perfectly on my Z.

(using echo 31 >/sys/class/backlight/corgi-bl/brightness in /etc/zaurus.d/hinge-landscape/00-backlight-on and /etc/zaurus.d/hinge-portrait/00-backlight-on )

Quote from: jpmatrix
little problem : when you close the lid outside of X, the screens shut off. but when you open it again it remains dark
any way to correct that ?
C1000, 2.6.24-yonggun, Debian EABI

scottlfa

  • Sr. Member
  • ****
  • Posts: 281
    • View Profile
    • http://
Closing Lid Setting
« Reply #23 on: December 18, 2007, 03:26:49 pm »
Indeed, on mine too.
"So there I was, spitting on my goldfish trying to keep it alive ..."
---------------------------------------------------------------< O >-------------------------------------------------------
Viliv N5 [Debian]
Acer One Running OSX 10.5.7 [Dell 3190 & Ram Upgraded]
SL-C1000 [ZUbuntu], JasJar [WM 6.5], Nokia N900, and Samsung Galaxy S 4G.
Sony Ux280P [Kbuntu 10.4 Lucid], PsP Go and DSi

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Closing Lid Setting
« Reply #24 on: December 18, 2007, 04:14:52 pm »
Quote from: LinuxGadget
Strange  , it's working perfectly on my Z.

(using echo 31 >/sys/class/backlight/corgi-bl/brightness in /etc/zaurus.d/hinge-landscape/00-backlight-on and /etc/zaurus.d/hinge-portrait/00-backlight-on )

Quote from: jpmatrix
little problem : when you close the lid outside of X, the screens shut off. but when you open it again it remains dark
any way to correct that ?

yeah yeah, i took the zaurusd directory from angstrom and it apparently needs some tweaking
i'm about to succeed in that
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

LinuxGadget

  • Newbie
  • *
  • Posts: 44
    • View Profile
Closing Lid Setting
« Reply #25 on: December 18, 2007, 05:35:12 pm »
In addition: zaurusd wasn't starting on my Z while booting, so i did ln -s /etc/init.d/zaurus.d /etc/rc2.d/S31zaurusd    


Quote from: jpmatrix
Quote from: LinuxGadget
Strange  , it's working perfectly on my Z.

(using echo 31 >/sys/class/backlight/corgi-bl/brightness in /etc/zaurus.d/hinge-landscape/00-backlight-on and /etc/zaurus.d/hinge-portrait/00-backlight-on )

Quote from: jpmatrix
little problem : when you close the lid outside of X, the screens shut off. but when you open it again it remains dark
any way to correct that ?

yeah yeah, i took the zaurusd directory from angstrom and it apparently needs some tweaking
i'm about to succeed in that
C1000, 2.6.24-yonggun, Debian EABI

scottlfa

  • Sr. Member
  • ****
  • Posts: 281
    • View Profile
    • http://
Closing Lid Setting
« Reply #26 on: December 18, 2007, 08:19:33 pm »
apt-get install rcconf

The app allows you to easily set what startup services will run, zaurusd is not usually set to start at boot.  I think it runs when X is triggered and closed down when you exit it.  I could be wrong though.   The app though is very useful.
"So there I was, spitting on my goldfish trying to keep it alive ..."
---------------------------------------------------------------< O >-------------------------------------------------------
Viliv N5 [Debian]
Acer One Running OSX 10.5.7 [Dell 3190 & Ram Upgraded]
SL-C1000 [ZUbuntu], JasJar [WM 6.5], Nokia N900, and Samsung Galaxy S 4G.
Sony Ux280P [Kbuntu 10.4 Lucid], PsP Go and DSi

LinuxGadget

  • Newbie
  • *
  • Posts: 44
    • View Profile
Closing Lid Setting
« Reply #27 on: December 19, 2007, 02:48:40 pm »
Great  , been looking for sysv-rc-conf   (i'm running sidux on my box)

Quote from: scottlfa
apt-get install rcconf

The app allows you to easily set what startup services will run, zaurusd is not usually set to start at boot.  I think it runs when X is triggered and closed down when you exit it.  I could be wrong though.   The app though is very useful.
C1000, 2.6.24-yonggun, Debian EABI

gojira

  • Full Member
  • ***
  • Posts: 122
    • View Profile
Closing Lid Setting
« Reply #28 on: February 10, 2009, 08:37:23 am »
Quote from: dlj0
I have had numerous instances where, carrying the machine in my pocket, something will touch the button and it will wake up, and drain the battery.

yeah, me too.  is there any way to poll the hinge switch to see if the lid is closed?  then it'd be easy to test on resume and just suspend again
Zaurus SL-C3200 Debian EABI / Sharp ROM (tetsu v18j), Socket CF Bluetooth (Rev E), BT747 GPS, Canon K30225 CF Wifi.  RIP: Zaurus SL-C860 Sharp ROM (1.40JP).