Welcome!
Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

[SOLVED] Xfce power manager - auto-disable presentation mode

Just as the name says, here is where you can post tips and tricks to share with other users of MEPIS.
Post Reply
pearsimmon
Forum Regular
Forum Regular
Posts: 115
Joined: Sat Apr 06, 2019 12:23 pm

[SOLVED] Xfce power manager - auto-disable presentation mode

#1

Post by pearsimmon » Wed Apr 24, 2019 3:35 pm

When I'm watching a long video, I enable presentation mode so that the screen doesn't lock. However, I always forget to disable it and then find myself using the PC without screen lock the next day, which is a security risk. Is there a way to force presentation mode to get disabled on every reboot? I tried the man page but there is no presentation-toggle option sadly.

Also TBH it should be possible to 1) toggle pres. mode with left click and 2) tray icon should change appearance when that happens. But since it's an Xfce program I guess it's out of MX devs' hands.
Last edited by pearsimmon on Thu Apr 25, 2019 6:25 am, edited 1 time in total.

User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 11495
Joined: Sun Dec 16, 2007 1:17 pm

Re: Xfce power manager - auto-disable presentation mode

#2

Post by dolphin_oracle » Wed Apr 24, 2019 3:52 pm

I think the answer here is yes. I think you can use a xfconf-query command to set the value, but I need to confirm that. If this is true, you could set an autostart command to run that takes care of it (just setting the value to "false" every boot would do the trick I think).

you may want to look at "caffeine", which does what you want with the icon changing (I think anyway).
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad T530 - MX-18
lenovo s21e - MX-18, antiX-17.3.1 (live-USB)
FYI: mx "test" repo is not the same thing as debian testing repo.

pearsimmon
Forum Regular
Forum Regular
Posts: 115
Joined: Sat Apr 06, 2019 12:23 pm

Re: Xfce power manager - auto-disable presentation mode

#3

Post by pearsimmon » Thu Apr 25, 2019 6:24 am

Thanks! That's a great solution - just install and forget and it indeed prevents lock screen when a program is in fullscreen. The icon is not there, I can start it manually with "caffeine-indicator" separately.

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 24628
Joined: Wed Jul 19, 2006 6:13 am

Re: [SOLVED] Xfce power manager - auto-disable presentation mode

#4

Post by Jerry3904 » Thu Apr 25, 2019 6:32 am

I think you can use a xfconf-query command to set the value, but I need to confirm that.
I don't see it when I list the available commands, but maybe I'm missing something:

Code: Select all

$ xfconf-query -c xfce4-power-manager -l
/xfce4-power-manager/brightness-switch
/xfce4-power-manager/brightness-switch-restore-on-exit
/xfce4-power-manager/lid-action-on-ac
/xfce4-power-manager/lid-action-on-battery
/xfce4-power-manager/logind-handle-lid-switch
/xfce4-power-manager/power-button-act
Production: 4.15.0-1-amd64, MX-17.1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, SSD 120 GB, Data 1TB
Testing: AAO 722: 4.15.0-1-386. MX-17.1, AMD C-60 APU, 4 GB
Personal: XPS 13, 4.18.0-19.3-liquorix, 4 GB

User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 11495
Joined: Sun Dec 16, 2007 1:17 pm

Re: [SOLVED] Xfce power manager - auto-disable presentation mode

#5

Post by dolphin_oracle » Thu Apr 25, 2019 6:59 am

Jerry3904 wrote:
Thu Apr 25, 2019 6:32 am
I think you can use a xfconf-query command to set the value, but I need to confirm that.
I don't see it when I list the available commands, but maybe I'm missing something:

Code: Select all

$ xfconf-query -c xfce4-power-manager -l
/xfce4-power-manager/brightness-switch
/xfce4-power-manager/brightness-switch-restore-on-exit
/xfce4-power-manager/lid-action-on-ac
/xfce4-power-manager/lid-action-on-battery
/xfce4-power-manager/logind-handle-lid-switch
/xfce4-power-manager/power-button-act
hmmm... its there, just not by default.

Code: Select all

xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s false
will turn it off and

Code: Select all

xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s true
will turn it on.

fun fact...the

Code: Select all

xfconf-query -c xfce4-power-manager -l
doesn't list what's available, it lists what's already set by xfconf already. unfortunately some settings, if they are the app's defaults, don't show up in the xfconf system until they are changed from the default. What's worse, some of the xfce settings dialogs remove the changed setting when they are changed back to their defaults. This drove me bonkers when working on the panel orientation functions in mx-tweak.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad T530 - MX-18
lenovo s21e - MX-18, antiX-17.3.1 (live-USB)
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 24628
Joined: Wed Jul 19, 2006 6:13 am

Re: [SOLVED] Xfce power manager - auto-disable presentation mode

#6

Post by Jerry3904 » Thu Apr 25, 2019 7:13 am

Thanks
Production: 4.15.0-1-amd64, MX-17.1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, SSD 120 GB, Data 1TB
Testing: AAO 722: 4.15.0-1-386. MX-17.1, AMD C-60 APU, 4 GB
Personal: XPS 13, 4.18.0-19.3-liquorix, 4 GB

Post Reply

Return to “Tips&Tricks”