Description: It couldn't get much more simpler than this little script/command. Anyhow, there's a few apps that would screw up my resolution after they exited and rather than look into it at the moment, I just googled to see if there was a quick command to execute that would change the resolution. So I found it, added that command to my KDE menu, then made a shortcut to it (ctrl + r) so I have a push-button resolution fix, which I recommend you do as it's quite handy.
Anyhow, place Native Resolution Switcher.desktop on your desktop for 1-click resolution switching or as I recommend earlier, just using the "xrandr -s 'your resolution'" command in the KDE menu and linking it to a shortcut key. You can also use the "-r" command to set the refresh rate. If no rate is specified, it will default to the lowest rate set in your xorg.conf.
The xrandr command is dependent on your xorg.conf file so if the resolution or refresh rate isn't set in your xorg.conf, then it will not use it.
I googled it and looked and looked. I can't find it anywhere to download. I couldn't find it in the Ubuntu repositories either. It supposedly comes with some distros from what I read but apparently not Kubuntu or perhaps Ubuntu Feisty. And it's supposedly the obsoleted program I heard about that let you do the ctrl+alt+(+ or -) resolution change.
Anyhow, the xrandr command works just fine for my needs. It's the quickest and least hassle solution since I only use one resolution.
Thanks. I was using the wrong command to try to start it with. It's pretty much the same thing as the resapplet app I was using.
I still see no way for it to use a key press to switch resolutions which was my original intent. But still, it's a handy app.
It's just a quick solution I use if a game or app such as in my case, xdtv and a couple other games, didn't change back to my monitor's native resolution after I exited them. I heard there used to be a way in KDE to use the ctrl+alt+"+ or -" to change it but I suppose they stopped doing that for some reason.
I got tired of going into my KDE monitor settings everytime to change it back, which was sometimes frequent.
If you want, you can use the "xrandr -s 1680 x1050" command I used in the script to make KDE menu shortcut, then link it to a key press. The push button functionality to change resolution is what I was after and this to me was the quickest and easiest. Also you can change it to your own resolution if you like, just make sure your monitor supports it.
Ratings & Comments
7 Comments
The program krandrtray comes with most distributions of kde. It will put an icon in your tray allowing you to set the screen res.
I googled it and looked and looked. I can't find it anywhere to download. I couldn't find it in the Ubuntu repositories either. It supposedly comes with some distros from what I read but apparently not Kubuntu or perhaps Ubuntu Feisty. And it's supposedly the obsoleted program I heard about that let you do the ctrl+alt+(+ or -) resolution change. Anyhow, the xrandr command works just fine for my needs. It's the quickest and least hassle solution since I only use one resolution.
krandrtray is (on Kubuntu Feisty Fawn) part of the package "kcontrol".
Thanks. I was using the wrong command to try to start it with. It's pretty much the same thing as the resapplet app I was using. I still see no way for it to use a key press to switch resolutions which was my original intent. But still, it's a handy app.
what does this script actually do?
It's just a quick solution I use if a game or app such as in my case, xdtv and a couple other games, didn't change back to my monitor's native resolution after I exited them. I heard there used to be a way in KDE to use the ctrl+alt+"+ or -" to change it but I suppose they stopped doing that for some reason. I got tired of going into my KDE monitor settings everytime to change it back, which was sometimes frequent. If you want, you can use the "xrandr -s 1680 x1050" command I used in the script to make KDE menu shortcut, then link it to a key press. The push button functionality to change resolution is what I was after and this to me was the quickest and easiest. Also you can change it to your own resolution if you like, just make sure your monitor supports it.
thanx for you reply!