ubuntu 14.04 screen resolution 1440*900 60 Hz

Asked by Gerlof Brinck

Hi there,

Recently I have bought for my son a computer with ubuntu 14.04. So far so good. There is a problem with the resolution of the of the monitor screen (Philips 190SW8) with a resolution of 1440 * 900 @60Hz. When I look in the system screens it gives:
Unknow screen and the resolutions to choose from are 1024*768 (4:3) and 800*600 (4;3).

In the computer itself the motherboard AMD Athlon (tm) 64X2 Dual core processor 4000+ x2; Graphic Gallium 0.4 on AMD RS780
32 bits and a harddisk of 30.3 Gb.

I hope someone can help me in this.

On beforehand thanks

Kindly regards

Gerlof.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Gerlof Brinck
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

sudo lshw -C display; lsb_release -a; uname -a; xrandr

Thanks

Revision history for this message
Gerlof Brinck (brinck) said :
#2

Dear Andrew,

Thank s for your reaction.

Th output of the line is;

  *-display
       description: VGA compatible controller
       product: RS780L [Radeon 3000]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 5
       bus info: pci@0000:01:05.0
       version: 00
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi vga_controller bus_master cap_list rom
       configuration: driver=radeon latency=0
       resources: irq:18 memory:d0000000-dfffffff ioport:d000(size=256) memory:febf0000-febfffff memory:fea00000-feafffff
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty
Linux ubuntu-desktop 3.16.0-57-generic #77~14.04.1-Ubuntu SMP Thu Dec 17 23:20:32 UTC 2015 i686 athlon i686 GNU/Linux
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192
VGA-0 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768 60.0*
   800x600 60.3 56.2
   848x480 60.0
   640x480 59.9
HDMI-0 disconnected (normal left inverted right x axis y axis)
beneden@ubuntu-desktop:~$

Kindly regards

Gerlof

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Open a terminal window and try the following commands:

xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
xrandr --output VGA-0 --mode "1440x900_60.00"

This should switch the display to 1440x900 at 60 Hz. Does this work as expected?

As an emergency precaution note the following:
If the screen starts flickering that you cannot see anything any more, the easiest way to correct that is by rebooting: "blindly" type

sudo reboot now
Press the enter key
type your password
press the enter key again.

Revision history for this message
Gerlof Brinck (brinck) said :
#4

Dear Manfred,

Thanks for your fast reply.

I have tried what you have proposed.
This is the answer of the computer:

beneden@ubuntu-desktop:~$ xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
beneden@ubuntu-desktop:~$ xrandr --output VGA-0 --mode "1440x900_60.00"
xrandr: cannot find mode 1440x900_60.00
beneden@ubuntu-desktop:~$

Kindly regards

Gerlof.

Revision history for this message
Gerlof Brinck (brinck) said :
#5

Dear Manfred,

I have tried it one more time, this is the output:

beneden@ubuntu-desktop:~$ xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
X Error of failed request: BadName (named color or font does not exist)
  Major opcode of failed request: 140 (RANDR)
  Minor opcode of failed request: 16 (RRCreateMode)
  Serial number of failed request: 25
  Current serial number in output stream: 25
beneden@ubuntu-desktop:~$ xrandr --output VGA-0 --mode "1440x900_60.00"
xrandr: cannot find mode 1440x900_60.00
beneden@ubuntu-desktop:~$

Kindly regards

Gerlof.

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

Sorry, my fault, I missed to add a command.
The sequence has to be

xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
xrandr --addmode VGA-0 "1440x900_60.00"
xrandr --output VGA-0 --mode "1440x900_60.00"

(The first one has to be issued only once in a session, so it will create an error message if you re-issue it.)

Revision history for this message
Gerlof Brinck (brinck) said :
#7

Oké thanks. It works, but when I restart the computer the screen goes automaticly to 1024*768 (4:3). When I check at the system the 1440*900 can not be chosen, see my question.

Is it an idea to put the sequence in the rc.local? Just above the 'exit 0'line?

Kindly regards

Gerlof.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

Run:

sudo gedit /usr/bin/fixres

add the below 4 lines:

#!/bin/bash
xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
xrandr --addmode VGA-0 "1440x900_60.00"
xrandr --output VGA-0 --mode "1440x900_60.00"

Save the new file, close gedit then add the command "fixres" to your startup items.

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

There are different options where to put these commands for automatic execution at boot time.

One source recommends to put them into a file
/etc/X11/Xsession.d/45x11-custom_xrandr-settings

Or you can create a private configuration file .xprofile with these settings.

Revision history for this message
Gerlof Brinck (brinck) said :
#10

Thanks!!
I hope the two last things:

After put the line

sudo gedit /usr/bin/fixres

in the terminal I got the message:
(gedit:2337): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

And the file itself. So I copied the lines in the fixres and saved it.

Than my second question: Hope do I add the command "fixres" to the startup items?

Kindly regards

Gerlof.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#11

Search in Dash for "Startup" and you will see the item to use. You can then add a new item to run the command.

Revision history for this message
Gerlof Brinck (brinck) said :
#12

THank for your answer. But I'am sorry where can I find Dash??

Hope hear from you

Kindly regards

Gerlof.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#13

Press the Windows key on your keyboard.

Revision history for this message
Gerlof Brinck (brinck) said :
#14

Thanks!! I have found the dash (it is in the left top corner) and the start (opstarttoepassingen in dutch). There in extra starting programs I ad a new starting program in opstarttoepassingen with the name fixres with a connection to /usr/bin/fixres
and safed the programm with the changes. Restart the computer and the old screen settings returns????

Sorry to bother you I thinks somewhere I made a mistake.

I hope you are still willing to help me out.

Thanks!!

Gerlof.

Revision history for this message
Manfred Hampl (m-hampl) said :
#15

My recommendation would have been to create a .xinitrc file in your own home directory.

gedit ~/.xinitrc

paste the four lines as given by actionparsnip, save the file and close the editor.

Issue the command

chmod +x ~/.xinitrc

logoff and logon again.

Revision history for this message
Gerlof Brinck (brinck) said :
#16

Manfred thanks!! I have to go soon. Tomorrow I will start with your recommendation. Only one question, where/how the command

chmod +x ~/.xinitrc

In the terminal??

Kindly regards

Gerlof.

Revision history for this message
Manfred Hampl (m-hampl) said :
#17

Yes, this is a command to be executed in a terminal.

Revision history for this message
Gerlof Brinck (brinck) said :
#18

Good morning,

I have executed as described.
Made my own directory with the command

gedit ~/.xinitrc

And copied the lines as you have given me:

#!/bin/bash
xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
xrandr --addmode VGA-0 "1440x900_60.00"
xrandr --output VGA-0 --mode "1440x900_60.00"

save and close the directory.

After that I executed the command

chmod +x ~/.xinitrc

in the terminal.

After that close with a restart (logoff logon) and the old resolution comes back.

I hope you are willing to help me.

Kindly regards

Gerlof.

Revision history for this message
Manfred Hampl (m-hampl) said :
#19

I started digging further into the problem, and it seems that some of my recommendations are no longer applicable to the lightdm display manager used in Ubuntu 14.04.

https://wiki.ubuntu.com/LightDM proposes the following:

create a file
sudo gedit /etc/lightdm/lightdm.conf.d/50-myconfig.conf

add the following contents:

[SeatDefaults]
display-setup-script=/usr/bin/fixres

Save the file and reboot.

(In case that there is any fault in the setup, then the X server probably will not start any more. To repair that you would have to switch to a command mode session with ctrl-alt-F1, log in there and delete the 50-myconfig.conf file. "sudo reboot now" should boot into the graphical environment again, but with the old resolution.)

Revision history for this message
Gerlof Brinck (brinck) said :
#20

THANKS FOR AL YOUR DIGGING!!!

I followed your instructions. When I try to create the file I get in the terminal:

beneden@ubuntu-desktop:~$ sudo gedit /etc/lightdm/lightdm.conf.d/50-myconfig.conf
[sudo] password for beneden:

(gedit:2698): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

(gedit:2698): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

(gedit:2698): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

(gedit:2698): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

(gedit:2698): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
^Cbeneden@ubuntu-desktop:~$ sudo gedit /etc/lightdm/lightdm.conf.d/50-myconfig.cfn

(gedit:2747): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

IN the created file, at least the file with the name:
*50-myconfig.conf(/etc/lightdm/lightdm.conf.d)-gedit

I put a copy of the line
display-setup-script=/usr/bin/fixres

And try to save it. That does not work.
I get the following message in red:
Bestand '/etc/light.dm/light.conf.d/50-myconfig.conf' niet gevonden.
Controleer of u de lokatie juist heeft ingevoerd en probeer opnieuw.

In english: File............conf has not been found.
Check if you have inserted the proper location and try try again.

I hope this will give you more information.

Kindly regards

Gerlof.

Revision history for this message
Manfred Hampl (m-hampl) said :
#21

Maybe you mistyped the filename

What is the output of

ps ax | grep dm
ls -l /etc/lightdm/lightdm.conf.d

Revision history for this message
Gerlof Brinck (brinck) said :
#22

The output is:

beneden@ubuntu-desktop:~$ ps ax | grep dm
  664 ? Ss 0:00 rpc.idmapd
 1086 ? Ssl 0:00 lightdm
 1103 tty7 Ssl+ 1:47 /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
 1112 ? Sl 0:00 lightdm --session-child 12 15
 3029 pts/0 S+ 0:00 grep --color=auto dm
beneden@ubuntu-desktop:~$ ls -l /etc/lightdm/lightdm.conf.d

Kindly regards

Gerlof.

Revision history for this message
Manfred Hampl (m-hampl) said :
#23

Ok, the "ps" output confirms that you are running lightdm

Try again with the following commands:

echo "[SeatDefaults]" > 50-myconfig.conf
echo "display-setup-script=/usr/bin/fixres" >> 50-myconfig.conf
cat -n 50-myconfig.conf
sudo cp 50-myconfig.conf /etc/lightdm/lightdm.conf.d/
sudo updatedb
locate lightdm.conf

Revision history for this message
Gerlof Brinck (brinck) said :
#24

This are the results:

beneden@ubuntu-desktop:~$ echo "[SeatDefaults]" > 50-myconfig.conf
beneden@ubuntu-desktop:~$ echo "display-setup-script=/usr/bin/fixres" >> 50-myconfig.conf
beneden@ubuntu-desktop:~$ cat -n 50-myconfig.conf
     1 [SeatDefaults]
     2 display-setup-script=/usr/bin/fixres
beneden@ubuntu-desktop:~$ sudo cp 50-myconfig.conf /etc/lightdm/lightdm.conf.d/
[sudo] password for beneden:
cp: kan het normale bestand ‘/etc/lightdm/lightdm.conf.d/’ niet aanmaken: Is geen map
beneden@ubuntu-desktop:~$

In english:
cp: can not make the normal file '/etc......./;is no directory

Revision history for this message
Manfred Hampl (m-hampl) said :
#25

ok, probably a wrong assumption by me,

WHat is the output of

sudo updatedb
locate lightdm.conf
ls -l /etc/lightdm/

Revision history for this message
Gerlof Brinck (brinck) said :
#26

The output is:

beneden@ubuntu-desktop:~$ sudo updatedb
[sudo] password for beneden:
Sorry, probeer opnieuw
[sudo] password for beneden:
beneden@ubuntu-desktop:~$ sudo updatedb
beneden@ubuntu-desktop:~$ locate lightdm.conf
/etc/init/lightdm.conf
/etc/lightdm/lightdm.conf
/usr/share/doc/lightdm/lightdm.conf.gz
/usr/share/lightdm/lightdm.conf.d
/usr/share/lightdm/lightdm.conf.d/50-greeter-wrapper.conf
/usr/share/lightdm/lightdm.conf.d/50-guest-wrapper.conf
/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
/usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf
/usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf
/var/lib/dpkg/info/lightdm.conffiles
/var/lib/dpkg/info/lightdm.config
beneden@ubuntu-desktop:~$ ls -l /etc/lightdm/

Revision history for this message
Manfred Hampl (m-hampl) said :
#27

Try

sudo mkdir /etc/lightdm/lightdm.conf.d
sudo cp 50-myconfig.conf /etc/lightdm/lightdm.conf.d/
ls -la /etc/lightdm/lightdm.conf.d

what is the output?
and then try rebooting.

Revision history for this message
Gerlof Brinck (brinck) said :
#28

The output is:

beneden@ubuntu-desktop:~$ sudo mkdir /etc/lightdm/lightdm.conf.d
[sudo] password for beneden:
Sorry, probeer opnieuw
[sudo] password for beneden:
beneden@ubuntu-desktop:~$ sudo mkdir /etc/lightdm/lightdm.conf.d
mkdir: kan map ‘/etc/lightdm/lightdm.conf.d’ niet aanmaken: Bestand bestaat al
beneden@ubuntu-desktop:~$ sudo cp 50-myconfig.conf /etc/lightdm/lightdm.conf.d/
beneden@ubuntu-desktop:~$ ls -la /etc/lightdm/lightdm.conf.d

Translation to dutch:
mkdir: kan map ‘/etc/lightdm/lightdm.conf.d’ niet aanmaken: Bestand bestaat al

Can not make '/etc.....' : file already exists
I will restart (=reboot?) the computer.

Revision history for this message
Gerlof Brinck (brinck) said :
#29

Now the computer has problems.

THe system is running in low-graphics mode

Your screen, graphics, and input device settings could not be detected correctly. You will need to configurate these yourself.

I hope you can help me out in this one.

Kindly Regards

Gerlof.

Revision history for this message
Manfred Hampl (m-hampl) said :
#30

Sorry that this did not work

The command

sudo rm /etc/lightdm/lightdm.conf.d/50-myconfig.conf

and rebooting should reset the system to the previous status.

Revision history for this message
Gerlof Brinck (brinck) said :
#31

It is oké that it is not working, you really tried to help me out.

Now I work with my laptop to communicate with you.

The problem here is that when I startup the computer i get a white screen in the middle with the text:

THe system is running in low-graphics mode

Your screen, graphics, and input device settings could not be detected correctly. You will need to configurate these yourself.

With a oke button in the right undercorner. When I press this button (the mouse is working)

I get a new white screen with the text:

What would you like to do?

-Run in low graphics mode for just one session
-Reconfigure graphics
-troubleshooting the error
-exit to console login

In the right corner below I can choose cancel of OK

I have to start somewhere so I can use the commands you have given me

Revision history for this message
Manfred Hampl (m-hampl) said :
#32

select run in low graphics mode for one session

the try logging in normally, open a terminal and issue the command
sudo rm /etc/lightdm/lightdm.conf.d/50-myconfig.conf

Revision history for this message
Gerlof Brinck (brinck) said :
#33

I have done it

Than a white screen with:

Stand by one minute while the display starts......

In the right corner ok

I push the button oke with result that the in de left upper corner is the small horizontal white streep blinking

Sorry

Revision history for this message
Manfred Hampl (m-hampl) said :
#34

other proposal:

reboot and select exit to console login

enter your username and password
issue the command

sudo rm /etc/lightdm/lightdm.conf.d/50-myconfig.conf
if there is no error message, enter the command
sudo reboot now

Revision history for this message
Gerlof Brinck (brinck) said :
#35

I'am afraid, same result I push the button oke with result that the in de left upper corner is the small horizontal white streep blinking

Sorry

Revision history for this message
Manfred Hampl (m-hampl) said :
#36

next try:

press the shift button during booting.
This should bring up the grub menu
select advanced options, recovery more, root command prompt
issue the commands

mount -o rw,remount /
rm /etc/lightdm/lightdm.conf.d/50-myconfig.conf
exit

This should bring up the grub recovery menu again, select resume.
see http://www.psychocats.net/ubuntu/resetpassword
but the key command for you is not the passwd command to reset the password, but the rm command to remove the not fitting lightdm config file.

Revision history for this message
Gerlof Brinck (brinck) said :
#37

I stopped the computer. Restart it with the shift button pressed, and again the white screen with: The system is running etc.

Am I doing something wrong?? Ore is it the computer?

Anyway I'am very grateful you are trying to help me.

Revision history for this message
Manfred Hampl (m-hampl) said :
#38

You have to press the shift button earlier, maybe repeatedly pressing helps reaching the grub menu.

Revision history for this message
Gerlof Brinck (brinck) said :
#39

Thanks, but I'am afraid that I have to pay more attention to my children and go on with the cooking ( i did both) but now it is better that later I go on. Anyway repeatledly pressing the shift button i wil try it again first time it dod not work

Thanks i wiil come back tater.

Revision history for this message
Manfred Hampl (m-hampl) said :
#40

If you have an Ubuntu installation kit available, you could also boot into that installation kit (from DVD or USB stick) in the "Try Ubuntu without installing" mode, access the hard disk and remove that config file.

Revision history for this message
Gerlof Brinck (brinck) said :
#41

Finnaly it worked out!!! It is now quiet in the house so I could give all my attention to the computer.

I pressed the shift button very frequently so I made it to the grub menu. After some attempts and your url to the site How to change etc.

I know that I have to change the resolution by hand, so be it. I'll learn it my son (he is using the computer mainly) how to do it.

Thanks for all your help,

Kindly Regards

Gerlof.