Hi,
when I set my screen size (e.g., to 1680X1050) to anything other than the default, it won’t save the change permanently. It means I have to change it each time I start OpenSuSE.
Anyone know why this is? Thanks in advance!
Hi,
when I set my screen size (e.g., to 1680X1050) to anything other than the default, it won’t save the change permanently. It means I have to change it each time I start OpenSuSE.
Anyone know why this is? Thanks in advance!
You haven’t told us how (specifically) you are you trying to change it? Are you using KDE or Gnome? If you want it to be permanant, you can create/modify xorg.conf accordingly, (or via a strartup script with xrandr commands), although anything other than the native display resolution will usually result in less visual clarity.
Thanks for your reply.
I’m using the System Settings module in KDE.
The default setting is different from the native setting, so I need to change it.
It’s perplexing as to why it won’t simply save the settings.
Ok, now I understand. The systems settings does not stick - it actually sets the diplay mode via xrandr. Restarting the X-server causes the default mode to be used again.
There are 2 appraoches to fixing this (xrandr or xorg.conf edit). Post your xorg.conf file if you can:
cat /etc/X11/xorg.conf
If using openSUSE 11.2/11.3 this config file might not exist, in which case one can be created.
XRandR Approach: One way to permantly set a preferred resolution via xrandr is to do the following. Type
xrandr
to get a list of available resolutions.
There is a (hidden) ~/.xprofile file for each user which is executed on login. You can edit that file with an editor like this
kwrite ~/.profile
Then add a line like
xrandr --output default --mode 1680x1050
Then restart the X-server, or logout and back in again.
That will cause that display mode to be used after logging in.
Alternatively, you can create a bash script to do the same, make it executable (with ‘chmod +x name-of-your-script’ , and put it in .kde4/Autostart/
For example
#!/bin/bash
xrandr --output default --mode 1280x1024
If you want this to happen earlier (during Xorg startup), then the xorg.conf approach is better. I can run you through that when you supply your existing xorg.conf file.
Thanks! Ok, there doesn’t seem to exist an xorg.conf file. (I also looked in the directory.)
:~ # cat /etc/X11/xorg.conf
cat: /etc/X11/xorg.conf: No such file or directory
Should I create the file?
We need some more info:
please post output of
su -c 'lspci'
(enter rootpassword when asked for)
You can check which driver is used for the videocard by entering “sysinfo:/” in the address bar in Konqueror.
You may also take a look here: openSUSE Graphic Card Practical Theory Guide for Users
Ok, here it is…
:~ # su -c 'lspci'
00:00.0 Host bridge: Intel Corporation 82915G/P/GV/GL/PL/910GL Memory Controller Hub (rev 04)
00:02.0 VGA compatible controller: Intel Corporation 82915G/GV/910GL Integrated Graphics Controller (rev 04)
00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 03)
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d3)
00:1f.0 ISA bridge: Intel Corporation 82801FB/FR (ICH6/ICH6R) LPC Interface Bridge (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 03)
00:1f.2 IDE interface: Intel Corporation 82801FB/FW (ICH6/ICH6W) SATA Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 03)
02:01.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6306 Fire II IEEE 1394 OHCI Link Layer Controller (rev 80)
02:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
02:04.0 Communication controller: Conexant Systems, Inc. HSF 56k Data/Fax Modem
You can check which driver is used for the videocard by entering “sysinfo:/” in the address bar in Konqueror.
Vendor: Intel Corporation
Model: 915 G
Driver: intel
You may also take a look here: openSUSE Graphic Card Practical Theory Guide for Users
Thanks. I will look at it now.
For users who prefer to work without the (deprecated) xorg.conf, the xrandr approach is good. Did you try that? Otherwise proceed with the graphics card guide and generate a xorg.conf as explained there.
same problem here on opensuse 11.2. I am going the xrandr way, but i am stuck with:
Then add a line like
Code:
xrandr --output default --mode 1680x1050
What should i put for output default?
What should i put for output default?
As far as I understand, you can use that line for any default display. If you prefer, you can use the exact name for your display. Typing
xrandr
in a terminal should give you this info (eg LVDS, VGA-0).
Otherwise trawling through /var/log/Xorg.0.log will provide details about display name(s) too.
cat /var/log/Xorg.0.log
BTW, try the command in a terminal first for immediate effect (and testing purposes). When you’re happy with results, consider putting within one of the script locations.
I’m still tinkering with this…
Did that. Configuring the parameters manually seems too complicated, so I tried using the System Settings module. But, as before, the settings didn’t stick.
I tested the following line in a terminal and it worked.
xrandr --output VGA --mode 1680x1050
Unfortunately, it didn’t work in either ~/.profile or the bash script in .kde4/Autostart.
I’m thankful for any suggestions.
Unfortunately, it didn’t work in either ~/.profile or the bash script in .kde4/Autostart.
I’m thankful for any suggestions.
I’ve tested this, and both methods worked for me. You didn’t provide enough detail to determine why the xrandr command did not work at KDE startup.
If you used ~/.profile, please try post the ouput of
cat ~/.profile
Specifically, I’m looking for typo’s etc.
If you created a script, did you make it executable (as explained previously)?
This is from /home/username/.profile. Should it have been in /root/.profile, instead?
:~> cat ~/.profile
test -z "$PROFILEREAD" && . /etc/profile
xrandr --output VGA --mode 1680x1050
And yes, I made the bash script executable with chmod; I see it marked as executable in the properties dialog. The script works fine if I click on it from within Dolphin.
Located in /home/username/.kde4/Autostart …
#!/bin/bash
xrandr --output VGA --mode 1680x1050
But it doesn’t work at startup.
This is from /home/username/.profile. Should it have been in /root/.profile, instead?
No, it needs to be in your /home/username/.profile
Mine for reference
test -z "$PROFILEREAD" && . /etc/profile || true
# Some comment lines
#
#
xrandr --ouput default --mode 1024x768
# Some more comment lines
#
Maybe its the ‘|| true’ part that needs to be there - I confess I don’t really know.
With respect to the autostart script, I have read suggestions that this directory is intended as a container for .desktop files, Try moving the file to /home/username, and linking to the ~/.kde4/Autostart instead (via a .desktop link)
Arch Linux Forums / Howto: Autostart in KDE4
‘Re: [kde] .kde4/Autostart doesn’t work’ - MARC]('Re: [kde] .kde4/Autostart doesn't work' - MARC)
Have you tried Systemsettings > Advanced > Autostart? As it apears, it uses ~/.config/Autostart as a memory aid, and not ~/.kde4/Autostart .
deano_ferrari, Lord_Emsworth
Thanks. I got the script to work. It was my mistake: forgot to put the .sh extension on the file. It’s been a long time since I’ve written a script.
Anyway, the script now runs in ~/.kde4/env, but the mouse-cursor disappears upon startup and my keyboard layout is off. WTF??
I really hate “improvements” :\ Maybe I should just download and install 11.1 ?
I can’t even begin to think what is causing problems for you with the mouse cursor and keyboard layout. Did you try reconfiguring via KDE ‘System Settings’. You can select keyboard and mouse settings from there.
I just installed OpenSuse and am having the same problem. I had tried Linux several years ago but it was taking too much time to figure stuff out every time I wanted to do something that is relatively simple in Windows. I thought I would try it again because I heard that Linux had made great strides in terms of ease of use.
But it’s stuff like this that forces me to stay with Windows. It won’t save the display settings unless you jump through all these esoteric hoops? And if you don’t do it the desktop is unusable because the “start” button is off-screen?
I don’t mean any offense, I know a lot of people are working hard on this stuff, for free no less. But if Windows had a problem like this its critics would be (and are) merciless.
But it’s stuff like this that forces me to stay with Windows. It won’t save the display settings unless you jump through all these esoteric hoops?
I agree with you that it would be nice for the KDE Syetem Settings tool to be able to make the necessary display mode changes automatically. It has actually been suggested to the KDE team already. I’m sure you can manage a few simple steps outlined here if required though.
I have to agree with Filius1: This is a major quality control error by OpenSuSE. Even though I personally don’t mind getting some learning experience via this helpful forum, I can definitely see why many people give up on Linux. It’s unfortunate because it seems avoidable.
In any case, setting the command in ./profile or .bashrc does not work. And putting the bash script in ~/.kde4/env produces the same result as running xrandr from the command line: mouse-cursor disappears and keyboard layout changes.
Interestingly, whereas System Settings always displays the incorrect resolution, the SaX2 module actually recognizes and displays the correct monitor and resolution value automatically. But it won’t apply the value.
(BTW, I just noticed that starting SaX2 also screws up the keyboard layout.)
I guess my only option now is xorg.conf. Here goes another try…