Author Topic: Help With Fluxbox Keymapping Of Clamshell  (Read 3516 times)

klatt

  • Newbie
  • *
  • Posts: 47
    • View Profile
Help With Fluxbox Keymapping Of Clamshell
« on: November 08, 2006, 09:57:59 pm »
Hello All,

I like to keep my 3200 (beta 3) on next to my bed to check email and do random little things here and there so I don't have to keep my Macbook on 24/7 (it already gets enough of a beating at work every day).   Anyway I have it set up to never turn off or suspend or shut off the screen with a timeout.

Anyway I do like to shut the lid and have the screen go off.  I have accomplished this with the following line in my keys file:

XF86RotateWindows :exec /etc/sysconfig/clamshell/closed.sh

which should be easily translateable to other WMs.  While it does work, it does have a side effect: when you open the screen back up it turns on then turns off again (or it is hitting the other little screen button for rotating behind the main one), and the only reason I can think of is that it is hitting the button again.  How does MB or the other WMs handle this ?  Has anyone gotten this behavior to work well under fluxbox, either with the clamshell closing OR rotating (this would be nice for me but is not a must).

Thanks,
Frank

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Help With Fluxbox Keymapping Of Clamshell
« Reply #1 on: November 09, 2006, 04:36:14 am »
Beta 3 does exactly this by default:
It switches the screen off if you close the lid, but otherwise stays fully functional.

So there is probably no need to do any reconfiguring.

daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

klatt

  • Newbie
  • *
  • Posts: 47
    • View Profile
Help With Fluxbox Keymapping Of Clamshell
« Reply #2 on: November 09, 2006, 09:07:09 am »
Quote
Beta 3 does exactly this by default:
It switches the screen off if you close the lid, but otherwise stays fully functional.

So there is probably no need to do any reconfiguring.

daniel
[div align=\"right\"][a href=\"index.php?act=findpost&pid=145869\"][{POST_SNAPBACK}][/a][/div]


The WM handles this function though. If you switch WM then the ability goes away.  As per the subject of the topic, I am running Fluxbox.  I have been able to get it to "sort of" work though with the annoying side effect of the screen turning on when you open it but turning right off again until you hit another key or tap the screen.

Frank

zi99y

  • Sr. Member
  • ****
  • Posts: 282
    • View Profile
Help With Fluxbox Keymapping Of Clamshell
« Reply #3 on: November 09, 2006, 03:08:15 pm »
I'm using fluxbox, and when I shut the lid, when I open it again I can see the light turn back on, so it seems it works on the C3200. Can you see that the light is still on when you open yours?

klatt

  • Newbie
  • *
  • Posts: 47
    • View Profile
Help With Fluxbox Keymapping Of Clamshell
« Reply #4 on: November 09, 2006, 03:15:37 pm »
Quote
I'm using fluxbox, and when I shut the lid, when I open it again I can see the light turn back on, so it seems it works on the C3200. Can you see that the light is still on when you open yours?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=145921\"][{POST_SNAPBACK}][/a][/div]

Hmm.. What does your keys file look like?  

Right now to goes like this:
1. Screen on
2. Shut lid
3. Screen shuts off
4. Open lid
5. Screen turns on
6. Split second later screen shuts off
7. hit a key or tap the screen and the light turns on.

Before I mapped the key to closed.sh the screen would not shut off at all.

zi99y

  • Sr. Member
  • ****
  • Posts: 282
    • View Profile
Help With Fluxbox Keymapping Of Clamshell
« Reply #5 on: November 09, 2006, 05:17:07 pm »
Try this:

None XF86RotateWindows :exec chkhnge

Sorry, I realised this must have been one of my own modifications - it was included in my fluxbox howto files.

chkhnge takes care of the screen rotation and lid closing, it must also switch off the screen for me.

klatt

  • Newbie
  • *
  • Posts: 47
    • View Profile
Help With Fluxbox Keymapping Of Clamshell
« Reply #6 on: November 09, 2006, 06:43:56 pm »
Quote
Try this:

None XF86RotateWindows :exec chkhnge

Sorry, I realised this must have been one of my own modifications - it was included in my fluxbox howto files.

chkhnge takes care of the screen rotation and lid closing, it must also switch off the screen for me.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=145934\"][{POST_SNAPBACK}][/a][/div]


Ahh, that works beautifully, though I had to put /usr/bin/chkhinge in my exec, but I had to do that for clamshell.sh also.

Finally landscape works also! I barely use it but it looks awesome when I show people the rotating screen hah.  

The screen rotation in fluxbox tho makes the default WM look like a hog tho.  It's INSTANT in fluxbox.

Thanks!

Frank

zi99y

  • Sr. Member
  • ****
  • Posts: 282
    • View Profile
Help With Fluxbox Keymapping Of Clamshell
« Reply #7 on: November 10, 2006, 02:25:32 am »
I totally agree, its one of the things that is much faster using fluxbox. Glad you got it working, I mistyped the command but I see you found it anyway.

klatt

  • Newbie
  • *
  • Posts: 47
    • View Profile
Help With Fluxbox Keymapping Of Clamshell
« Reply #8 on: November 13, 2006, 10:55:48 am »
Quote
I totally agree, its one of the things that is much faster using fluxbox. Glad you got it working, I mistyped the command but I see you found it anyway.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=145965\"][{POST_SNAPBACK}][/a][/div]


Yup, Thanks for your help.  I had actually tried it before but fluxbox didn't seem to pick it up. I think because I didn't have the full path.  However I noticed in the custom fluxbox config there are no full paths and fluxbox doesn't seem to pick any of it up.  I know this stuff is in my path, so how can I get fluxbox to pick it up?

Thanks for your help!

Frank

zi99y

  • Sr. Member
  • ****
  • Posts: 282
    • View Profile
Help With Fluxbox Keymapping Of Clamshell
« Reply #9 on: November 13, 2006, 02:36:57 pm »
strange as it's ok on mine wihout the full path, are you sure you can run the command from the shell prompt without full path?

if it causes you trouble you could just use the command which ... to find the location of your programs so you can add the path to the config file