Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-05-2020, 01:14 AM
|
#1
|
Member
Registered: Jun 2020
Posts: 614
Rep: 
|
XFCE 'Display Settings' Confirmation Woes (Timeout impossibly short)
I'm trying to change my monitor configuration(s) in XFCE 4 (Xubuntu 20.04) - whenever I enable or disable a monitor, it wants to force one of those 'display settings are changed, you have 10 seconds to click OK or I will revert it because I don't believe you really know what you want' pop-ups. However, none of my monitors can re-sync fast enough, so essentially I cannot change settings because by the time the monitor is re-drawn, guess what? Its reverting!
This happens on both of my XFCE-based desktop systems (which tells me this is not 'a bug' - it's 'a feature') - one of them has an nVidia card, so I can just use the nVidia X Server Settings applet and make changes there (it, graciously, offers a 20-30s timeout), but the other one uses Radeon and thus I am (at least as far as I know) stuck with the XFCE settings (and thus stuck with the monitor configuration it defaulted to, more or less). Short of having to physically unhook monitors when I want to disable/change them, what can I do? Can I defeat this worthless nanny setting? Can I extend the time out infinite or near-infinite time? (Ideally I'd love to 'break' this feature on both machines because it is quite frustrating).
Side note: I'm guessing I could manually edit my xconf and force whatever configuration I want, but then I would have to restart X and/or log in/out and/or reboot everytime I wanted to make what should be a simple change - if Windows and OS X can do this seamlessly, why can't Linux? (and it's really more 'why can't XFCE?' - because this behavior works exactly fine on GNOME and KDE).
Any thoughts?
|
|
|
07-05-2020, 03:04 AM
|
#2
|
Member
Registered: Apr 2020
Location: Japan/RJCC
Distribution: debian, lfs, whatever else i need in qemu
Posts: 268
Rep:
|
I can only think of wild hacks like
Code:
kill -STOP `pidof xfce4-display-settings`
from other ssh session a second or so after you click apply or something similar or clicking over x11vnc from other machine but both methods suck.
The better option is to patch it and rebuild(judging from ChangeLog and sources they permanently decided on 10 seconds with no way to change it in configs. So we'd need to change the line below:
Code:
xfce4-settings-4.12.4/dialogs/display-settings/main.c : line containing count = 10
Code:
grep -n 'count = 10' ./dialogs/display-settings/main.c
293: confirmation_dialog->count = 10;
You can rebuild it manually using this guide:
https://wiki.debian.org/BuildingAPackage
It works for ubuntu too as it's based off the same package management system.
|
|
1 members found this post helpful.
|
07-05-2020, 07:57 AM
|
#3
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Are you sure the hardcoded 10s cannot be overridden?
I would look in xfconf again. I believe there even exists a graphical editor for it.
If that doesn't help, I'd just write myself a script that does what I want. AFAICS everything can be achieved just as well with some xrandr commands, and it shouldn't corrupt the XFCE desktop if you do it that way.
If the script works you can wrap it in yad or zenity to make it GUI.
|
|
|
07-05-2020, 08:49 AM
|
#4
|
Member
Registered: Apr 2020
Location: Japan/RJCC
Distribution: debian, lfs, whatever else i need in qemu
Posts: 268
Rep:
|
@ondoho: I took a very quick look, and that's what I concluded. Also if you just grep 10 seconds you'd find it in ChangeLog dated 2010, they accepted it as a new standard. I looked thru xfconf-query, it wasn't there unlike some other hidden values that usually are.
But xrandr commands can sure be scripted and are another possible solution to the problem.
|
|
|
All times are GMT -5. The time now is 10:23 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|