Help - Search - Members - Calendar
Full Version: Help With Fluxbox Keymapping Of Clamshell
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
klatt
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
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
klatt
QUOTE(daniel3000 @ Nov 9 2006, 05:36 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
*



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
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
QUOTE(zi99y @ Nov 9 2006, 04:08 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?
*


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
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
QUOTE(zi99y @ Nov 9 2006, 06:17 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.
*



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
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
QUOTE(zi99y @ Nov 10 2006, 03:25 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.
*



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
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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.