Flux Box lock screen after sleep

I (finally) got flux to go to sleep when I close the laptop lid, but when it wakes up, it's right there where I left it, no login or anything. Besides logging out before hand, is there a way to get it to lock when it goes to sleep? I found a solution that "sort of" works, I added xlock to the key that causes it to wake from sleep, but it flickers the desktop for a bit of a second, so I was wondering if there was another way.
While we're at it, how do you get a laptop to go to sleep when you close the lid? I have to close then open mine, as it only seems to sense the opening, though obviously Windows senses it close. I've been using xev to log key presses, but it doesn't seem to pick up the closing action.

/etc/acpi/handler.sh is the file you're looking for. It should already contain a "button/lid" branch. Put this there:
grep -q closed /proc/acpi/button/lid/C154/state && (xlock &) && pm-suspend
You will have to substitute 'C154' for whatever you have, and 'pm-suspend' for whatever you use to suspend.
Naturally, the acpid daemon needs to be running.
Now, the above assumes closing the lid immediately generates an acpi event, which may not be the case, based on what you said.
I have to close then open mine, as it only seems to sense the opening,
To test, either do as I suggest above, or run `acpi_listen -t 10`, close the lid, wait 15 seconds, open it and see if acpi_listen shows something like this:
button/lid C154 00000080 00000005
I also assume you got this thing to halfway work using something other than acpid's handler.sh. Therefore, before you try with acpid, make sure the other method is disabled (unless you want it to suspend twice in a row or something like that).
edit:
I forgot to say (though it's rather obvious): the key is to lock the screen before you suspend.
Last edited by cantabile (2010-07-02 05:59:26)

Similar Messages

  • I cant fit my picture to my lock screen after i updated to iso7

    i cant fit my picture to my lock screen after i updated to iso7 and im actually really annoyed. I heard its just a glitch but is there anyway to fix it?

    http://bit.ly/1rFn3jO
    Cheers,
    GB

  • I do not get alert sound for in coming SMS on locked screen after iOS update to latest version

    I do not get alert sound for in coming SMS on locked screen after iOS update to latest version

    Settings > Do Not Disturb > OFF

  • Camera app not shown on lock screen after iOS 5 upgrade

    Camera app not shown on lock screen after ios 5 upgrade. Help!!

    Push your home button twice at the lock screen.

  • HT1222 Why does my 4s just close an app all of the sudden and the apple logo will come up like it's shutting down but doesn't it will go to lock screen after that

    Why does my 4s just close an app all of the sudden and the apple logo will come up like it's shutting down but doesn't it will go to lock screen after that.

    It's definitely a crash. I'd maybe look into reinstalling the operating system.
    http://support.apple.com/kb/ht1414
    Make sure you back up first though.

  • Yoga - Thinkpad message receiver for shortcut hot keys and 30 % CPU usage after lock screen or sleep

    Hi! After returning from sleep or lock screen a process called "Thinkpad message receiver for shortcut hot keys" starts using about 30% of the CPU. Temps go upo to 60-70 degrees battery is being depleted quite fast. This process doesn't stop until I end it using task manager. Once ended that way, it doesn't start again even if I use sleep or lock screen. Need help with this!
    I didn't use to have this problem like a month ago or so. Probably came into existence after some updates.
    Solved!
    Go to Solution.

    ChrisL_US wrote:
    Do any of you have Kaspersky Anti-Virus or Internet Security? Seems like few T540 owners also got the same problem and one of them discovered it is Kaspersky causing the problem. I can comform it too.
    I am using Kaspersky Internet Secuirty 2015, when I resume my TPY from sleep, the message receiver for shortcut hot keys will show up and use 20-35% processing power which cause the laptop to heat up.
    I hope a Thinkpad rep can come in to report the bug.
    The T540p post link: https://forums.lenovo.com/t5/T400-T500-and-newer-T​-series/t540p-high-cpu-usage-by-shtctky-exe-ThinkP​...
    Thanks ChrisL_US! I do have kaspersky anti-virus 2015 installed.

  • How can I get my email and message notifications back on the lock screen after the 5.01 upgrade?

    After the 5.01 Lollipop upgrade I lost my email, text and voice mail notifications on the lock screen on my LG G3.  How do I get them back?

    Still didnt work...i dont know whats wrong.. i want them to look like this...

  • IPhone 6 Plus no longer shows time on the lock screen after iOS 8.2 update

    Question as seen above. after updating my iPhone 6 Plus to iOS 8.2, it no longer shows the current time on the lock screen. It also takes a couple of seconds for it to load the status bar at the top of the screen. Restoring from iTunes didn't fix it. Please help!

    Hello RCountrykid,
    Thanks for using Apple Support Communities.
    From your post I understand that you are unable to connect your Bluetooth device with your iPhone 6.  To troubleshoot this connection issue, I'd like you to please follow the steps in the article below.
    iOS: Troubleshooting Bluetooth connections - Apple Support
    Have a good one,
    Alex H.

  • No notifications in notification bar on lock screen after Lollipop upgrade

    Before my G3 was "upgraded" to 5.01, I could double tap the screen, the lock screen would come up, and at the top of the screen in the notification bar, there would be icons for new SMS, emails and calendar events, if there were any new ones.
    After the 5.01 "upgrade", that is no longer the case.  I have to actually unlock the screen, and then the icons in the notification bar are visible.
    I've heard and read that the 5.01 upgrade now lets you have notifications directly on the lock screen.  That is NOT what I am referring to.  This is the actual notification bar icons, which worked before the "upgrade", but now do not.
    The first image below show where the notifications for SMS, emails, calendar events, etc used to be shown.  The second image shows the icons are visible after unlocking the phone.
    So, does anyone know how to make the notifications show up in the notification bar while the lock screen is displayed? 

    All the notifications for the G2 and G3 have been under the clock that I have seen and no indicators in the bar.

  • HT5192 has anyone else foud the security bug of the camera in the lock screen after the update to 5.1

    Hi
    has anyone found that you can get into an iPhone from the lock screen with the camera option. I have just upgraded and now have the camera option on the lock screen. you can go into the camera without the need of the pass code and then when in it press the home button to get into the phone. this is a big security problem, or am I alone of thinking this.
    thanks
    ally

    I have tried that a few times.  Also I can only get the phone to lock out someone after using the camera shortcut on the lock screen if the passcode is required immediately. If it is set to 1 minute you can still get into the phone and use it without the passcode.

  • Error screen after sleep

    Hi,
    I am new to Macs, coming from windows. Love OS X..... but lately it seems as if Vista were a much more stable operating system! I seem to constantly have a greyed out screen after resuming from sleep mode, with a text in the middle stating an error has occurred and that I need to shut down. Also sometimes I will try to resume from sleep, and get no picture on my monitor.
    I am running a 2010 Mac Mini with 10.6.6. Using an Acer H233H 23" LCD monitor connected via an HDMI cable, an Apple Magic mouse, and the Apple wireless keyboard. I was using a WD 1TB Mybook external HDD as my timemachine, however I figured that may have been causing the issue - I was wrong as it still occurs after unplugging it. Have 4GB of RAM in the mail.
    Any ideas? I can't seem to get the problem to occur on my own, it is quite random in choosing when to start. Here's what my last problem report looked like.
    Interval Since Last Panic Report: 20854 sec
    Panics Since Last Report: 1
    Anonymous UUID: 71430DD4-51BE-4028-BC3C-3B8F30A7888F
    Mon Mar 7 20:13:28 2011
    panic(cpu 0 caller 0x2aab55): Kernel trap at 0x0027d182, type 14=page fault, registers:
    CR0: 0x80010033, CR2: 0x00000004, CR3: 0x00100000, CR4: 0x00000668
    EAX: 0x00000000, EBX: 0x00849ff0, ECX: 0x04961e28, EDX: 0x04961e28
    CR2: 0x00000004, EBP: 0x46cf3b98, ESI: 0x00000170, EDI: 0x0000002e
    EFL: 0x00010246, EIP: 0x0027d182, CS: 0x00000008, DS: 0x46cf0010
    Error code: 0x00000002
    Backtrace (CPU 0), Frame : Return Address (4 potential args on stack)
    0x46cf3388 : 0x21b50c (0x5d4438 0x46cf33bc 0x223974 0x0)
    0x46cf33d8 : 0x2aab55 (0x59623c 0x27d182 0xe 0x596406)
    0x46cf34b8 : 0x2a09a8 (0x46cf34d0 0x1066a56 0x46cf3b98 0x27d182)
    0x46cf34c8 : 0x27d182 (0xe 0x48 0x46cf0010 0xab30010)
    0x46cf3b98 : 0x26d36d (0x4961e28 0x1 0x46cf3c28 0x233bdd)
    0x46cf3bc8 : 0x26d5eb (0xfe98f060 0x0 0x29935b 0x0)
    0x46cf3be8 : 0x26e21b (0xa408288 0x0 0x10 0x84b7a0)
    0x46cf3c28 : 0x260f39 (0xa408280 0x33806b0 0x0 0x31e0c000)
    0x46cf3d58 : 0x261130 (0x31e0c000 0x0 0x0 0x0)
    0x46cf3d98 : 0x283152 (0x3137ebc 0x31e0b000 0x0 0x31e0c000)
    0x46cf3dc8 : 0x564b32 (0x3137ebc 0x31e0b000 0x33 0x20f8ba)
    0x46cf3e18 : 0x2897b2 (0x64f9b00 0x7775080 0x33 0x6633ab8)
    0x46cf3e58 : 0x21d8ba (0x91afb84 0x6633a94 0x299915 0x0)
    0x46cf3e98 : 0x210a3a (0x91afb00 0x46cf3edc 0x3137334 0x46cf3ed0)
    0x46cf3ef8 : 0x216c9d (0x91afb00 0x0 0x0 0x0)
    0x46cf3f78 : 0x295156 (0x5d06f08 0x0 0x0 0x0)
    0x46cf3fc8 : 0x2a148d (0x5d06f04 0x7fff 0x10 0x5d06f04)
    BSD process name corresponding to current thread: configd
    Mac OS version:
    10J567
    Kernel version:
    Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386
    System model name: Macmini4,1 (Mac-F2208EC8)
    System uptime in nanoseconds: 20927423334636
    unloaded kexts:
    com.apple.driver.AppleMCP89RootPortPM 1.11 (addr 0x12b2000, size 0x20480) - last unloaded 113004938137
    loaded kexts:
    com.apple.driver.AppleHWSensor 1.9.3d0
    com.apple.driver.AppleBluetoothMultitouch 54
    com.apple.driver.ApplePlatformEnabler 2.0.2d1
    com.apple.driver.AGPM 100.12.19
    com.apple.filesystems.autofs 2.1.0
    com.apple.driver.AppleMikeyHIDDriver 1.2.0
    com.apple.driver.AppleHDA 1.9.9f12
    com.apple.driver.AppleLPC 1.4.12
    com.apple.driver.AudioAUUC 1.13
    com.apple.driver.AppleMikeyDriver 1.9.9f12
    com.apple.driver.AppleUpstreamUserClient 3.4.5
    com.apple.driver.AppleMCCSControl 1.0.17
    com.apple.DontSteal_Mac_OSX 7.0.0
    com.apple.driver.AudioIPCDriver 1.1.6
    com.apple.driver.AppleIntelPenrynProfile 17
    com.apple.driver.ACPISMCPlatformPlugin 4.5.0d5
    com.apple.GeForce 6.2.6
    com.apple.driver.AppleIRController 303.8
    com.apple.iokit.SCSITaskUserClient 2.6.5
    com.apple.iokit.AppleBCM5701Ethernet 2.3.9b6
    com.apple.driver.AppleSDXC 1.0.1
    com.apple.BootCache 31
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
    com.apple.driver.AirPortBrcm43224 426.36.1
    com.apple.iokit.IOAHCIBlockStorage 1.6.3
    com.apple.driver.AppleFWOHCI 4.7.1
    com.apple.driver.AppleUSBHub 4.1.7
    com.apple.driver.AppleHPET 1.5
    com.apple.driver.AppleAHCIPort 2.1.5
    com.apple.driver.AppleUSBOHCI 4.1.5
    com.apple.driver.AppleUSBEHCI 4.1.7
    com.apple.driver.AppleEFINVRAM 1.4.0
    com.apple.driver.AppleRTC 1.3.1
    com.apple.driver.AppleACPIButtons 1.3.5
    com.apple.driver.AppleSMBIOS 1.6
    com.apple.driver.AppleACPIEC 1.3.5
    com.apple.driver.AppleAPIC 1.4
    com.apple.driver.AppleIntelCPUPowerManagementClient 105.13.0
    com.apple.security.sandbox 1
    com.apple.security.quarantine 0
    com.apple.nke.applicationfirewall 2.1.11
    com.apple.driver.AppleIntelCPUPowerManagement 105.13.0
    com.apple.driver.AppleBluetoothHIDKeyboard 141 - last loaded 37267587512
    com.apple.driver.AppleHIDKeyboard 141
    com.apple.driver.IOBluetoothHIDDriver 2.3.8f7
    com.apple.driver.AppleMultitouchDriver 207.10
    com.apple.driver.DspFuncLib 1.9.9f12
    com.apple.driver.AppleProfileReadCounterAction 17
    com.apple.driver.AppleProfileTimestampAction 10
    com.apple.driver.AppleProfileThreadInfoAction 14
    com.apple.driver.AppleProfileRegisterStateAction 10
    com.apple.driver.AppleProfileKEventAction 10
    com.apple.driver.AppleProfileCallstackAction 20
    com.apple.iokit.IOFireWireIP 2.0.3
    com.apple.iokit.IOSurface 74.2
    com.apple.iokit.IOBluetoothSerialManager 2.3.8f7
    com.apple.iokit.IOSerialFamily 10.0.3
    com.apple.iokit.IOAudioFamily 1.8.0fc1
    com.apple.kext.OSvKernDSPLib 1.3
    com.apple.driver.AppleHDAController 1.9.9f12
    com.apple.iokit.IOHDAFamily 1.9.9f12
    com.apple.driver.AppleSMBusController 1.0.8d0
    com.apple.iokit.AppleProfileFamily 41
    com.apple.driver.AppleSMC 3.1.0d3
    com.apple.driver.IOPlatformPluginFamily 4.5.0d5
    com.apple.driver.AppleSMBusPCI 1.0.8d0
    com.apple.nvidia.nv50hal 6.2.6
    com.apple.NVDAResman 6.2.6
    com.apple.iokit.IONDRVSupport 2.2
    com.apple.iokit.IOGraphicsFamily 2.2
    com.apple.driver.BroadcomUSBBluetoothHCIController 2.3.8f7
    com.apple.driver.AppleUSBBluetoothHCIController 2.3.8f7
    com.apple.iokit.IOBluetoothFamily 2.3.8f7
    com.apple.iokit.IOUSBHIDDriver 4.1.5
    com.apple.driver.AppleUSBComposite 3.9.0
    com.apple.iokit.IOSCSIMultimediaCommandsDevice 2.6.5
    com.apple.iokit.IOBDStorageFamily 1.6
    com.apple.iokit.IODVDStorageFamily 1.6
    com.apple.iokit.IOCDStorageFamily 1.6
    com.apple.driver.XsanFilter 402.1
    com.apple.iokit.IO80211Family 312
    com.apple.iokit.IONetworkingFamily 1.10
    com.apple.iokit.IOAHCISerialATAPI 1.2.5
    com.apple.iokit.IOSCSIArchitectureModelFamily 2.6.5
    com.apple.iokit.IOFireWireFamily 4.2.6
    com.apple.iokit.IOUSBUserClient 4.1.5
    com.apple.iokit.IOAHCIFamily 2.0.4
    com.apple.iokit.IOUSBFamily 4.1.7
    com.apple.driver.NVSMU 2.2.7
    com.apple.driver.AppleEFIRuntime 1.4.0
    com.apple.iokit.IOHIDFamily 1.6.5
    com.apple.iokit.IOSMBusFamily 1.1
    com.apple.kext.AppleMatch 1.0.0d1
    com.apple.security.TMSafetyNet 6
    com.apple.driver.DiskImages 289
    com.apple.iokit.IOStorageFamily 1.6.2
    com.apple.driver.AppleACPIPlatform 1.3.5
    com.apple.iokit.IOPCIFamily 2.6
    com.apple.iokit.IOACPIFamily 1.3.0
    Model: Macmini4,1, BootROM MM41.0042.B00, 2 processors, Intel Core 2 Duo, 2.4 GHz, 2 GB, SMC 1.65f2
    Graphics: NVIDIA GeForce 320M, NVIDIA GeForce 320M, PCI, 256 MB
    Memory Module: global_name
    AirPort: spairportwireless_card_type_airportextreme (0x14E4, 0x93), Broadcom BCM43xx 1.0 (5.10.131.36.1)
    Bluetooth: Version 2.3.8f7, 2 service, 19 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: TOSHIBA MK3255GSXF, 298.09 GB
    Serial ATA Device: OPTIARC DVD RW AD-5680H
    USB Device: BRCM2070 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0x06600000
    USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8218, 0x06630000
    USB Device: IR Receiver, 0x05ac (Apple Inc.), 0x8242, 0x06500000

    Canadian I am not new for mac I am comming fron a hackintosh and in there our mayor problem is sleep.
    I also have upgrade one week ago to a macbook air and I am having the same problem and is annoing.
    I don't have a solution yet but I have a workaround here it is:
    In System Preferences/ Energy Saver/ Power Adapter/ set the computer to never go to sleep.
    Them again;
    In System Preferences/ Desktop & Screen Saver/ Screen Saver/ chose any one then in the botton you will see Hot Corners there choise any corner you like and click on the up&down arrow a drop menu will display chose Start Screen Saver that will cover the screen with your screen saver and after few minutes will go black but NOT sleep.
    Meanwhile I search for solution I hope this will help you.
    And Vista *****. Stay in Mac it is the future.

  • I am facing a new problem after a missed call. i phone will get freez on its lock screen after a miss call. Its seems that its main screen touch is not working properly.  This problem occurs after each and every missed call.

    I'm using iphone 5s with ios 7.1.2  & I am facing a new problem after every missed call. i phone  gets freezed on its lock screen. It seems that its main screen touch is not working properly. It should be bug introduced by apple . This problem occurs after each and every missed call .There is no patch announcement for this issue yet. There are few workaround to fix this issue: Reboot your iphone. But its  irritating to reboot the phone frequently after each issue....

    Hello dipthebe,
    Check out the articles below go through troubleshooting steps for your iPhone when the screen is unresponsive. You may want to try and restore your iPhone as a new device and then test out what happens when you miss a call to see if the issue is still present afterwards.
    iPhone, iPad, iPod touch: Troubleshooting touchscreen response
    http://support.apple.com/kb/ts1827
    Use iTunes to restore your iOS device to factory settings
    http://support.apple.com/kb/HT1414
    Regards,
    -Norm G.

  • Where is the camera icon on the lock screen after downloading ios5

    I completed the download of ios5 and I believe there is supposed to be a small camera icon on the lock screen so I can take a photo without having to unlock the phone.  I did see it right after the download but it has since disappeared.  Anyone know how to get it back?
    Thanks!!

    Your welcome! Hey, I didn't know how to access it at first, also!

  • Xfce4 will not lock screen after resume from hibernate/suspend

    There have been a lot previous threads about this issue.
    I cannot fix it. Furthermore, it's somewhat confusing.
    Since this is a single user system (literally), I can get away with a systemd powered hack:
    [Unit]
    Description=Lock screen before switching power state
    Before=sleep.target
    [Service]
    Type=oneshot
    ExecStart=/usr/bin/sudo -u gebruiker xscreensaver-command -lock
    [Install]
    WantedBy=sleep.target
    Is this a bug? Anyone who can report this functionality works?. I have:
    xflock4 installed and working
    xscreensaver installed and working
    systemd working properly
    no errors in ~/.xsession-errors
    both config items ticked in
    - xfce4-session
    - xfce4-power-manager
    Anyone?

    Anyone who can report this functionality works?
    Using the first option from the xscreensaver wiki article:
    [Unit]
    Description=Lock X session using xscreensaver
    Before=sleep.target
    [Service]
    Type=oneshot
    ExecStart=/usr/bin/xuserrun /usr/bin/xscreensaver-command -lock
    [Install]
    WantedBy=sleep.target
    ...in conjunction with:
    both config items ticked in
    - xfce4-session
    - xfce4-power-manager
    ...and fade to and fade from disabled, works here for me.

  • How to stop computer from going to lock screen after 15 minutes (Windows 8.1)

    My laptop was going to lockscreen after 15 minutes. I adjusted power settings and went to advanced screen, adjusted that and ......no change.  Now somebody somewhere said that my system settings were overriding my power settings and that helped. I
    did this and things were fixed. But now, it's gone back to 15 minute thing, which is a pain when I'm watching, say, a movie. And, I don't remember what I did before to fix it, and I can't find the information anywhere!  Help!!!

    Hi,
    Seems we all missed an important option:
    Please click "Settings" in the right charm bar, then "Change PC Settings"\"PC and device"\"Lock Screen",
    Turn off "When my PC is inactive, show the lock screen instead of turning off the screen"
    You can change the inactive time with security policy:
    Click Control Panel> Administrative Tools> Local Security Policy> Local Policies> Security Options> Interactive Logon: Machine Inactivity Limit>set the time you want.
    After you change the policy setting, run gpupdate /force
    Yolanda Zhu
    TechNet Community Support

Maybe you are looking for