LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Closed Thread
  Search this Thread
Old 10-27-2009, 05:40 AM   #1
logforlinux
LQ Newbie
 
Registered: Feb 2009
Posts: 14

Rep: Reputation: 0
Knowing Linux machine state (Screen Lock/unlock)


Hi,

I am trying to find programatically if a Linux box is screen lock/unlock.

In KDE, i can lock a linux machine using,
kdesktop_lock --forcelock
Once machine gets lock, a process called 'KDesktop_lock' starts running.

In GNOME, i can lock machine using,
gnome-screensaver-command --lock
But there is no way to find whether a machine using GNOME is screen lock or unlock.

I am trying to find what is the command to know state of a Linux machine. State is locked or unlocked?

Help on this will be appreciated...
 
Old 10-27-2009, 06:29 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE lock/unlock session problem with screen saver timeout [ kdesktop_lock ] Askmethod Linux - Newbie 4 11-15-2010 07:50 AM
Lock screen (requiring password to unlock) when resuming from suspend theoldman Linux - Laptop and Netbook 2 12-17-2009 09:35 PM
Num lock OFF and Caps & Screen Lock ON at Linux startup. Reversing? peteyperson Linux - Newbie 2 02-28-2009 11:44 AM
About Lock And Unlock George2 Programming 8 08-23-2005 11:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration