FedoraThis forum is for the discussion of the Fedora Project.
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.
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.
Is there a command in Fedora to change the resolution instantly?
I know "krandrtray" let's you choose the resolution you want, but I need a command that will accept the resolution as a paramater, and change the resolution instantly. Like "programname --resolution 640x480"
I'm using it for a Starcraft startup script, because the resolution has to be 640x480 for Starcraft to run.
Thanks.
Not sure of a command line way of doing this, but you can use crtl-alt-(keypad +) or ctrl-alt-(keypad -) to cycle through the resolutions without restarting X. On my laptop, this means ctrl-alt-Fn-+ or ctrl-alt-Fn-
The resolutions defined in the config ARE the zooms used, by changing the resolution. The desktop virtual resolution is not changed, and can't be changed AFAIK (once X is started, it can be set in the config however).
If it can't be changed, then how does that KDE program (krandtray or something similar) that comes with Fedora Core 1 change it? Or does that just zoom?
I'm not familiar with that program, but don't use KDE very often. Its not installed on my machine currently with that name.
The desktop settings module of the Control Center does allow changing resolutions and refresh rates however. I wasn't aware of this until I just went looking. I don't know how it does this, but the X server doesn't appear to restart, so either they are dynamically resizing the virtual desktop size, or they are simply locking the window manager's useable size (leaving the rest of the virtual desktop space unused but still out there). Just a guess of course. The answer is in the code if you've got time to find it. :-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.