You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



Workaround for Clementine Not Preventing Sleep (On AC Power)

Author (Read 5146 times)

0 Members and 1 Guest are viewing this topic.

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

N4RPS

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

  • 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.
 

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

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8775
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

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

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Nice share Duckeenie :)
 

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

Duckeenie

  • Occasional Poster
  • **
  • 93
    Posts
  • Reputation: 11
  • Linux Lite Member
    • View Profile

  • 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
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section