You are Here:
Download Linux Lite 5.6 RC1 for testing today - See Release Announcements



X Close Ad
X Close Ad
Workaround for Clementine Not Preventing Sleep (On AC Power)

Author (Read 2871 times)

0 Members and 1 Guest are viewing this topic.

Workaround for Clementine Not Preventing Sleep (On AC Power)
« on: October 22, 2015, 01:34:28 AM »
 

Duckeenie

  • Occasional Poster
  • **
  • 93
    Posts
  • Country: 00
  • Reputation: 11
  • Linux Lite Member

  • Linux Lite: 2.6 64bit

  • CPU: Intel i3-4130

  • MEMORY: 6Gb

  • VIDEO CARD: Nvidia 740

Clementine satisfies most of my needs at the moment but it doesn't prevent sleep while playing,  which I find pretty annoying. To overcome this I pointed the application launcher to my first ever simple bash script.

Code: [Select]
#!/bin/bash
clear
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/inactivity-on-ac -s 0
clementine
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/inactivity-on-ac -s 15

I wanna see the Linux guru's follow this bad boy! :P
Last Edit: October 24, 2015, 01:40:11 PM by Duckeenie
Don't believe half of what you see and none of what you hear

- Lou Reed
 


Re: Workaround for Clementine Not Preventing Sleep (On AC Power)
« Reply #1 on: October 24, 2015, 06:07:06 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8081
    Posts
  • Country: nz
  • Reputation: 753
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.4 64bit

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Nice share Duckeenie :)
 

Re: Workaround for Clementine Not Preventing Sleep (On AC Power)
« Reply #2 on: November 11, 2015, 12:05:02 AM »
 

N4RPS

  • Donator
  • Platinum Level Poster
  • **********
  • 1149
    Posts
  • Country: us
  • Reputation: 154
  • Knows JUST ENOUGH Linux to be DANGEROUS
    • Orphans for Christ, Self Advocates of Mecklenburg

  • Linux Lite: 2.6 64bit

  • CPU: Several Different 32-bit & 64-bit CPUs, 2-8 GB RAM

  • MEMORY: 8Gb

  • VIDEO CARD: Several Different AMD and Intel GPUs
Hello!

I currently use Caffeine to keep my TV recordings from stopping on me, but your script looks a whole lot simpler! I also thank you.

I'll be removing Caffeine now. Besides, t's a pain to have to add Caffeine dark-theme icons every time I install it...

73 DE N4RPS
Rob



A gun in your hand is worth more than a whole police force on the phone.
 


Tags:
 

X Close Ad
X Close Ad

Download Linux Lite 5.6 RC1 for testing today - See Release Announcements