Author Topic: sleep on close not working  (Read 4027 times)

galodoido

  • Full Member
  • ***
  • Posts: 153
    • View Profile
sleep on close not working
« on: May 27, 2018, 03:32:26 pm »
Hi,
sleep on close in my gemini is not working.
I did exactly as described below, but whem I close my gemini, nothing happens.
Thank you all for any help.

Sleep on close
sudo apt-get install repowerd xss-lock gemian-lock saytime
Then you need to add to your x-login session (lxqt configuration center -> session settings -> autostart -> add):

Name: Screen Lock
Command: xss-lock gemian-lock
So that it will get installed as your session screensaver. As a bonus the external silver button now tells you the time without having to open the device first.

Note: You really do need repowerd and gemian-lock working together for sleep to work at all, also WiFi being on is known to reduce sleep efficiency significantly more than it does on Android. This needs setting for the logged in user and means that sleep only works after you've logged in.

Adam Boardman

  • Full Member
  • ***
  • Posts: 191
    • View Profile
sleep on close not working
« Reply #1 on: May 28, 2018, 02:05:21 pm »
If you really have nothing happening on close then this would indicate that the new kernel + repowered + gemian-lock are not working together, so double check all those parts, if your are trying to pick-n-mix the DebianTP suggestions then you might have missed the kernel part (needed for the lid-close part of the sleep on close concept).

galodoido

  • Full Member
  • ***
  • Posts: 153
    • View Profile
sleep on close not working
« Reply #2 on: May 28, 2018, 06:57:24 pm »
Quote from: Adam Boardman
If you really have nothing happening on close then this would indicate that the new kernel + repowered + gemian-lock are not working together, so double check all those parts, if your are trying to pick-n-mix the DebianTP suggestions then you might have missed the kernel part (needed for the lid-close part of the sleep on close concept).

Hi, reflashed the kernel as you said and it is working now.
Thank you so much !

Wormhole

  • Newbie
  • *
  • Posts: 20
    • View Profile
sleep on close not working
« Reply #3 on: June 05, 2018, 12:12:54 pm »
Quote from: galodoido
Quote from: Adam Boardman
If you really have nothing happening on close then this would indicate that the new kernel + repowered + gemian-lock are not working together, so double check all those parts, if your are trying to pick-n-mix the DebianTP suggestions then you might have missed the kernel part (needed for the lid-close part of the sleep on close concept).

Hi, reflashed the kernel as you said and it is working now.
Thank you so much !

I have exactly the same. You reflashed the kernel. You mean with the flash tool? Can uou describe it in more details. Thanks!

galodoido

  • Full Member
  • ***
  • Posts: 153
    • View Profile
sleep on close not working
« Reply #4 on: June 05, 2018, 12:46:19 pm »
Quote from: Wormhole
Quote from: galodoido
Quote from: Adam Boardman
If you really have nothing happening on close then this would indicate that the new kernel + repowered + gemian-lock are not working together, so double check all those parts, if your are trying to pick-n-mix the DebianTP suggestions then you might have missed the kernel part (needed for the lid-close part of the sleep on close concept).

Hi, reflashed the kernel as you said and it is working now.
Thank you so much !

I have exactly the same. You reflashed the kernel. You mean with the flash tool? Can uou describe it in more details. Thanks!

You can download the kernel in the instructions, save it , rename with the same name in the full download folder (i.e linux_boot ). Make a backup of the older file and overwrite it with new file. ( linux_boot )
And flash only this file ( linux_boot ). Make sure in the flashtool to use the same scatter file you used before and mark only this file ( linux_boot ) . Also use only the download button option ( not firmware upgrade.)

Wormhole

  • Newbie
  • *
  • Posts: 20
    • View Profile
sleep on close not working
« Reply #5 on: June 05, 2018, 05:35:28 pm »
Quote from: galodoido
Quote from: Wormhole
Quote from: galodoido
Quote from: Adam Boardman
If you really have nothing happening on close then this would indicate that the new kernel + repowered + gemian-lock are not working together, so double check all those parts, if your are trying to pick-n-mix the DebianTP suggestions then you might have missed the kernel part (needed for the lid-close part of the sleep on close concept).

Hi, reflashed the kernel as you said and it is working now.
Thank you so much !

I have exactly the same. You reflashed the kernel. You mean with the flash tool? Can uou describe it in more details. Thanks!

You can download the kernel in the instructions, save it , rename with the same name in the full download folder (i.e linux_boot ). Make a backup of the older file and overwrite it with new file. ( linux_boot )
And flash only this file ( linux_boot ). Make sure in the flashtool to use the same scatter file you used before and mark only this file ( linux_boot ) . Also use only the download button option ( not firmware upgrade.)

Thanks it works!

johndude

  • Newbie
  • *
  • Posts: 3
    • View Profile
sleep on close not working
« Reply #6 on: June 18, 2018, 01:22:27 pm »
It seems to be almost working for me except I get an error when I open my devices (after the globe lock screen):

an error occurred starting screensaver. Action 'activate' failed. Ensure you have xscreensaver installed and running.

I did install xscreensaver but it didn't work too well and button didn't speak, after I removed xscreensaver, it almost works except with this error.

if I run 'css-lock gemian-lock' from the command line it says 'Failed to set screensaver attributes; is another one running?'

any ideas how to fix this?

galodoido

  • Full Member
  • ***
  • Posts: 153
    • View Profile
sleep on close not working
« Reply #7 on: June 18, 2018, 02:00:20 pm »
Quote from: johndude
It seems to be almost working for me except I get an error when I open my devices (after the globe lock screen):

an error occurred starting screensaver. Action 'activate' failed. Ensure you have xscreensaver installed and running.

I did install xscreensaver but it didn't work too well and button didn't speak, after I removed xscreensaver, it almost works except with this error.

if I run 'css-lock gemian-lock' from the command line it says 'Failed to set screensaver attributes; is another one running?'

any ideas how to fix this?

Did you install the new kernel in the intructions ? It works only with new kernel. If not updated , it will not work. See the instructions below  how to flash only linux_boot :

You can download the kernel in the instructions, save it , rename with the same name in the full download folder (i.e linux_boot ). Make a backup of the older file and overwrite it with new file. ( linux_boot )
And flash only this file ( linux_boot ). Make sure in the flashtool to use the same scatter file you used before and mark only this file ( linux_boot ) . Also use only the download button option ( not firmware upgrade.)

johndude

  • Newbie
  • *
  • Posts: 3
    • View Profile
sleep on close not working
« Reply #8 on: June 18, 2018, 03:44:07 pm »
Quote from: galodoido
You can download the kernel in the instructions, save it , rename with the same name in the full download folder (i.e linux_boot ). Make a backup of the older file and overwrite it with new file. ( linux_boot )
And flash only this file ( linux_boot ). Make sure in the flashtool to use the same scatter file you used before and mark only this file ( linux_boot ) . Also use only the download button option ( not firmware upgrade.)

Hi,

Thanks for the reply.

Yes I installed the new firmware, and also checked the MD5 as per the instructions, everything else works

John