Bug 74757 - Start screensaver on laptops when you close the lid
Summary: Start screensaver on laptops when you close the lid
Status: RESOLVED DUPLICATE of bug 44510
Alias: None
Product: kscreensaver
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kscreensaver bugs tracking
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-09 20:57 UTC by Sebastien Bourdeauducq
Modified: 2008-05-19 17:59 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastien Bourdeauducq 2004-02-09 20:57:25 UTC
Version:           0.8.0 (using KDE KDE 3.2.0)
Installed from:    Debian stable Packages
OS:          Linux

Hi !
It would be nice if Kopete set auto away when you close the lid of the laptops... you can easily do it using the information from /proc/acpi/button/lid.
I think you should add this feature as a separate plug-in as most people are using desktop computers.
Thanks ! Seb
Comment 1 Stefan Gehn 2004-02-09 21:10:03 UTC
Grab your acpid docs, you can run scripts when you close the lid.
In that script do something like:
dcop kopete default setAway
As the user running the script is probably not your login (it's probably root), use: the --all-users option on dcop.
The dcop utility itself also has a nice --help page.
I don't think writing a whole bunch of C++ is needed for such a seldom used feature if you can do it with a one-liner script.
Comment 2 Martijn Klingens 2004-02-09 21:12:39 UTC
I would like to see this being done differently instead: KDE should detect the lid being closed and start the screensaver and/or lock the screen.

All Kopete should do is just watch KDesktop's status and go away when the screen is locked (which makes sense also for non-notebooks), but I think the latter is already reported somewhere as a separate wish.

But can you agree with my first suggestion?

Martijn
Comment 3 Jason Keirstead 2004-02-09 22:01:27 UTC
Even if we do,  doesn't this make this a kdelibs and non-kopete bug?

Kopete shouldn't have anything to do with ACPI IMO.

( Don't nearly all users have their laptops *suspend* when it's closed?? )
Comment 4 Stefan Gehn 2004-02-10 00:11:48 UTC
> All Kopete should do is just watch KDesktop's status and go away when the
> screen is locked 
I think it already does so. If not then I can add that immediately.
Comment 5 Sebastien Bourdeauducq 2004-02-10 12:24:54 UTC
> Don't nearly all users have their laptops *suspend* when it's closed??
I don't. I often close it when I download big files from the internet.
Comment 6 Olivier Goffart 2004-02-23 21:18:23 UTC
see also Bug 63752 

I tempted to 1) make it duplicate of 63752
or 2)  re-assing it to another kde component, which one? (kscreensaver?)
Comment 7 Martijn Klingens 2004-02-23 21:24:38 UTC
Ok, indeed the Kopete part of the wish is implemented.

The rest is for the KDesktop people to implement, that is, starting the screensaver when the user closes the lid of the notebook.

Martijn
Comment 8 Chris Howells 2004-05-21 17:09:19 UTC

*** This bug has been marked as a duplicate of 44510 ***