LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-05-2012, 07:12 PM   #1
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04 OpenSUSE Leap 15.x
Posts: 518

Rep: Reputation: 24
Change laptop screen resolution


I have slackware64 13.37 installed on my new laptop, whose display resolution is 1366x768, but it will only display at 1024x768, stretched to fill the whole screen.

I have the following xorg.conf files
Code:
root@a:~# locate xorg.conf
/etc/X11/xorg.conf.d
/etc/X11/xorg.conf-vesa
/usr/share/X11/xorg.conf.d
/usr/share/X11/xorg.conf.d/50-wacom.conf
/usr/share/X11/xorg.conf.d/50-synaptics.conf
/usr/share/X11/xorg.conf.d/10-evdev.conf
/usr/share/X11/xorg.conf.d/50-vmmouse.conf
/usr/share/X11/xorg.conf.d/90-keyboard-layout.conf
/usr/man/man5/xorg.conf.5.gz
of which only /etc/X11/xorg.conf-vesa refers to monitor settings. I completely removed this file and rebooted, but it made no difference. I have also altered this file's content by adding "1366x768" to each relevant line in the Monitor Section, thus
Code:
Section "Screen"
Identifier  "Screen 1"
Device      "VESA Framebuffer"
Monitor     "My Monitor"
# If your card can handle it, a higher default color depth (like 24 or 32)
# is highly recommended.
#   DefaultDepth 8
#   DefaultDepth 16
DefaultDepth 24
#   DefaultDepth 32
# "1024x768" is also a conservative usable default resolution.  If you
# have a better monitor, feel free to try resolutions such as
# "1152x864", "1280x1024", "1600x1200", and "1800x1400" (or whatever your
# card/monitor can produce)
Subsection "Display"
Depth       8
Modes "1366x768" "1024x768" "800x600" "640x480"
EndSubsection
Subsection "Display"
Depth       16
Modes "1366x768" "1024x768" "800x600" "640x480"
EndSubsection
Subsection "Display"
Depth       24
Modes "1366x768" "1024x768" "800x600" "640x480"
EndSubsection
Subsection "Display"
Depth       32
Modes "1366x768" "1024x768" "800x600" "640x480"
EndSubsection
EndSection
This also had no effect on the actual display, I still get
Code:
~ $ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1024 x 768, current 1024 x 768, maximum 1024 x 768
default connected 1024x768+0+0 0mm x 0mm
   1024x768        0.0*
 
Old 04-06-2012, 02:02 AM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
This might help:
http://www.linuxquestions.org/questi...onitor-912898/
http://forums.debian.net/viewtopic.php?f=16&t=26577

Regards
 
1 members found this post helpful.
Old 04-06-2012, 09:16 AM   #3
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04 OpenSUSE Leap 15.x
Posts: 518

Original Poster
Rep: Reputation: 24
Thanks for your help, but no luck there. I followed the procedure laid out in
http://forums.debian.net/viewtopic.php?f=16&t=26577
but that made no difference. When I tried the procedure laid out by CCCC in the last post of
http://www.linuxquestions.org/questi...onitor-912898/
I got
Code:
bash-4.1# cvt 1368 768
# 1368x768 59.88 Hz (CVT) hsync: 47.79 kHz; pclk: 85.25 MHz
Modeline "1368x768_60.00"   85.25  1368 1440 1576 1784  768 771 781 798 -hsync +vsync
bash-4.1# xrandr --newmode "1368x768_60.00"   85.25  1368 1440 1576 1784  768 771 781 798 -hsync +vsync
xrandr: Failed to get size of gamma for output default
I have no clue what gamma may be, but xrandr complains of its unavailability every time I run it, so I'm guessing that is the sticking point here. Any suggestions?
 
Old 04-06-2012, 01:39 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
It would help to know which video hardware that laptop has.
 
Old 04-06-2012, 02:06 PM   #5
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
And we should really look at the /var/log/Xorg.0.log file, too. Only having 1024x768 as a supported resolution makes me think that you may be using the vesa driver.

Adam
 
Old 04-06-2012, 02:23 PM   #6
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04 OpenSUSE Leap 15.x
Posts: 518

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by TobiSGD View Post
It would help to know which video hardware that laptop has.
Here is the output of lspci
Code:
root@a:~# lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] Pavilion DM1Z-3000 Host bridge
00:01.0 VGA compatible controller: ATI Technologies Inc Device 9806
00:01.1 Audio device: ATI Technologies Inc Device 1314
00:04.0 PCI bridge: Advanced Micro Devices [AMD] Device 1512
00:11.0 SATA controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] (rev 40)
00:12.0 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.2 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.2 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 42)
00:14.1 IDE interface: ATI Technologies Inc SB7x0/SB8x0/SB9x0 IDE Controller (rev 40)
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA) (rev 40)
00:14.3 ISA bridge: ATI Technologies Inc SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:15.0 PCI bridge: ATI Technologies Inc Device 43a0
00:15.1 PCI bridge: ATI Technologies Inc Device 43a1
00:16.0 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:16.2 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 0 (rev 43)
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 6
00:18.6 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 5
00:18.7 Host bridge: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 7
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
04:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
root@a:~#
 
Old 04-06-2012, 02:25 PM   #7
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
I would remove the mods from xorg that you don't want, also attention with the depth cos if it is higher than your video card support it wont set the desired resolution or it will shrink it with some weird size.
Lets say your card only support 16bit depth so the sections monitor and screen will be something like(example):
Code:
Section "Monitor"
	#DisplaySize	  340   270	# mm
	Identifier   "Monitor0"
	VendorName   "AOC"
	ModelName    "712Sa"
	HorizSync    30.0 - 83.0
	VertRefresh  55.0 - 75.0
	Option	    "DPMS"
	 # 1280x1024 @ 60.00 Hz (GTF) hsync: 63.60 kHz; pclk: 108.88 MHz
	Modeline "1280x1024_60.00"  108.88  1280 1360 1496 1712  1024 1025 1028 1060  -HSync +Vsync
EndSection
#
Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    DefaultDepth 16
    SubSection "Display"
        Viewport   0 0
        Depth     16
        Modes "1280x1024_60.00"
    EndSubSection
EndSection
Could you post the output for:
Code:
lspci | grep -i vga
and:
Code:
dmesg | grep -i vga
To figure out what hardware it is and how it is been used.

Regards
 
Old 04-06-2012, 02:34 PM   #8
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04 OpenSUSE Leap 15.x
Posts: 518

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by adamk75 View Post
And we should really look at the /var/log/Xorg.0.log file, too. Only having 1024x768 as a supported resolution makes me think that you may be using the vesa driver.

Adam
Xorg.0.log is attached
Attached Files
File Type: log Xorg.0.log (108.9 KB, 38 views)

Last edited by porphyry5; 04-06-2012 at 02:36 PM. Reason: Reloading Xorg.0.log
 
Old 04-06-2012, 02:52 PM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Your laptop is using the AMD Radeon HD6320, which is inbuilt into your CPU. This chip is simply too new to be known by the radeon driver from Slackware 13.37, therefore the system uses the vesa driver. It may help if you install the newer kernel, Mesa and libdrm from /testing, if not it definitely will work with AMD's proprietary driver.

Last edited by TobiSGD; 04-06-2012 at 04:29 PM. Reason: fixed the name of the video-chip
 
1 members found this post helpful.
Old 04-06-2012, 03:16 PM   #10
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04 OpenSUSE Leap 15.x
Posts: 518

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by ukiuki View Post
I would remove the mods from xorg that you don't want, also attention with the depth cos if it is higher than your video card support it wont set the desired resolution or it will shrink it with some weird size.
Lets say your card only support 16bit depth so the sections monitor and screen will be something like(example):

Could you post the output for:
Code:
lspci | grep -i vga
and:
Code:
dmesg | grep -i vga
To figure out what hardware it is and how it is been used.

Regards
Your example code looked like it came from xorg.conf, which I did not have originally (though I have since generated it), what I had is xorg.conf-vesa, which has a rather different setup. As soon as I finish this I'll try adding the appropriate mode line to /root/xorg.conf.new, and see if it works (what it gives me now is a blank screen).

Code:
root@a:~# lspci|grep -i vga
00:01.0 VGA compatible controller: ATI Technologies Inc Device 9806
root@a:~# dmesg|grep -i vga
[    8.312887] ACPI: Video Device [VGA] (multi-head: yes  rom: no  post: no)
root@a:~#
 
Old 04-06-2012, 03:27 PM   #11
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04 OpenSUSE Leap 15.x
Posts: 518

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by TobiSGD View Post
Your laptop is using the AMD 6320, which is inbuilt into your CPU. This chip is simply new to be known by the radeon driver from Slackware 13.37, therefore the system uses the vesa driver. It may help if you install the newer kernel, Mesa and libdrm from /testing, if not it definitely will work with AMD's proprietary driver.
Thank you, I was wondering myself if the hardware was too new, when I bought the laptop there were no user reviews for it, but newegg's price was so low I couldn't resist. If AMD has a proprietary linux driver, I'll go that route first.

And AMD's driver solved the problem, and nicely timed, they released it less than a month ago. If you need this driver, it is available from
http://driverscollection.com/?H=Rade...SS=Linux%20x86

Last edited by porphyry5; 04-06-2012 at 04:52 PM. Reason: Add solution
 
Old 04-06-2012, 05:00 PM   #12
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
Quote:
Originally Posted by porphyry5 View Post
...I'll try adding the appropriate mode line to /root/xorg.conf.new, and see if it works (what it gives me now is a blank screen)...
Backup the working xorg.conf if screen goes bad just put back the working one.

Regards
 
Old 04-06-2012, 05:31 PM   #13
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by porphyry5 View Post
And AMD's driver solved the problem, and nicely timed, they released it less than a month ago. If you need this driver, it is available from
http://driverscollection.com/?H=Rade...SS=Linux%20x86
You linked to version 12.2, the current version is 12.3. AMD releases an updated driver every month, I recommend to always get your drivers from the manufacturer's website. That way you will always get the newest version and you don't have to trust a third party that the driver is not modified.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changed screen resolution and now can't see screen to change it back in Ubuntu lmb6832 Linux - Newbie 1 09-28-2010 10:52 PM
Change view to laptop screen to external screen tonet Linux - Laptop and Netbook 2 02-12-2009 01:34 PM
I cannot change my laptop screen resolution which has Centos 5.1 loaded with gnome homyangcha Linux - Newbie 4 09-01-2008 11:23 PM
change screen resolution of xdm login screen in suse linux anon104 Linux - Desktop 2 04-02-2007 09:26 AM
change screen resolution garyozzy Slackware 4 11-10-2005 06:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration