LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 03-20-2012, 12:22 PM   #1
jdgr
Member
 
Registered: Feb 2012
Location: Ontario, Canada
Distribution: Fedora 18
Posts: 65

Rep: Reputation: Disabled
Question Slackware 13.37 - Dual monitor, different resolutions


Hi All,

I'm running Slackware 13.37 and have dual monitors. My laptop is at resolution 1280x800, and my external monitor (connected by VGA1) should run at 1600x900, but I can't seem to do it; it stays at the laptop resolution.

Through searching, I've tried using xrandr. I needed it to get the monitor to work first, but after that noticing the resolution, everytime I try to change it with:

Code:
xrandr --output VGA1 --mode 1600x900
it gives me the error
Quote:
No protocol specified
No protocol specified
No protocol specified
No protocol specified
Can't open display :0.0
Does anyone know what I'm doing wrong. I just want to have both monitors working at the same time, but with different resolutions.

Thanks.
 
Old 03-20-2012, 03:09 PM   #2
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 396Reputation: 396Reputation: 396Reputation: 396
You need to run it while logged into X, as the user logged into X, just like any other X application.

Adam
 
Old 03-20-2012, 03:14 PM   #3
jdgr
Member
 
Registered: Feb 2012
Location: Ontario, Canada
Distribution: Fedora 18
Posts: 65

Original Poster
Rep: Reputation: Disabled
Thanks for the reply, but that is what I am doing. I am using XFCE and have tried running it in the terminal as my own user, and the superuser. Both had the same outcome (the above message).

Any other possible solutions?
 
Old 03-20-2012, 06:02 PM   #4
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 396Reputation: 396Reputation: 396Reputation: 396
Can you show us the output of 'xdpyinfo' ?

Adam
 
Old 03-21-2012, 06:53 AM   #5
jdgr
Member
 
Registered: Feb 2012
Location: Ontario, Canada
Distribution: Fedora 18
Posts: 65

Original Poster
Rep: Reputation: Disabled
xdpyinfo output:
Quote:
name of display: :0.0
version number: 11.0
vendor string: The X.Org Foundation
vendor release number: 10905000
X.Org version: 1.9.5
maximum request size: 16777212 bytes
motion buffer size: 256
bitmap unit, bit order, padding: 32, LSBFirst, 32
image byte order: LSBFirst
number of supported pixmap formats: 7
supported pixmap formats:
depth 1, bits_per_pixel 1, scanline_pad 32
depth 4, bits_per_pixel 8, scanline_pad 32
depth 8, bits_per_pixel 8, scanline_pad 32
depth 15, bits_per_pixel 16, scanline_pad 32
depth 16, bits_per_pixel 16, scanline_pad 32
depth 24, bits_per_pixel 32, scanline_pad 32
depth 32, bits_per_pixel 32, scanline_pad 32
keycode range: minimum 8, maximum 255
focus: window 0x2809440, revert to Parent
number of extensions: 27
BIG-REQUESTS
Composite
DAMAGE
DOUBLE-BUFFER
DPMS
DRI2
GLX
Generic Event Extension
MIT-SCREEN-SAVER
MIT-SHM
RANDR
RECORD
RENDER
SGI-GLX
SHAPE
SYNC
X-Resource
XC-MISC
XFIXES
XFree86-DGA
XFree86-VidModeExtension
XINERAMA
XInputExtension
XKEYBOARD
XTEST
XVideo
XVideo-MotionCompensation
default screen number: 0
number of screens: 1

screen #0:
dimensions: 2560x800 pixels (675x211 millimeters)
resolution: 96x96 dots per inch
depths (7): 24, 1, 4, 8, 15, 16, 32
root window id: 0xb8
depth of root window: 24 planes
number of colormaps: minimum 1, maximum 1
default colormap: 0x20
default number of colormap cells: 256
preallocated pixels: black 0, white 16777215
options: backing-store NO, save-unders NO
largest cursor: 64x64
current input event mask: 0x7a802c
ButtonPressMask ButtonReleaseMask LeaveWindowMask
ExposureMask StructureNotifyMask SubstructureNotifyMask
SubstructureRedirectMask FocusChangeMask PropertyChangeMask
number of visuals: 32
default visual id: 0x21
visual:
visual id: 0x21
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x22
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x9a
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x9b
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x9c
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x9d
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x9e
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x9f
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xa0
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xa1
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xa2
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xa3
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xa4
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xa5
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xa6
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xa7
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xa8
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xa9
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xaa
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xab
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xac
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xad
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xae
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xaf
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xb0
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xb1
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xb2
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xb3
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xb4
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xb5
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0xb6
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x69
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
Near as I can tell, instead of seeing 2 monitors, it's seeing 1 very wide monitor (res 2560x800). Still don't know what to do about it
 
Old 03-21-2012, 07:01 AM   #6
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 396Reputation: 396Reputation: 396Reputation: 396
Well the RANDR extension is listed there, as it should be. I have no idea why xrandr isn't working for you.

Adam
 
Old 03-21-2012, 07:17 AM   #7
jdgr
Member
 
Registered: Feb 2012
Location: Ontario, Canada
Distribution: Fedora 18
Posts: 65

Original Poster
Rep: Reputation: Disabled
Helpful... lol

Could it be that I have to run another program to initialize stuff? I am new to Slackware so I really don't know the ins and outs.

Maybe this will help. When I first plugged in my external monitor, it didn't start up immediately. After reboot it was working, but was mirroring my main display. I had to run
Code:
xrandr --output LVDS1 --primary --output VGA1 --right-of LVDS1
and then it worked. This command did run successfully, but I cannot run the commands to try and adjust the resolution without getting that error message.
 
Old 03-21-2012, 07:25 AM   #8
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 396Reputation: 396Reputation: 396Reputation: 396
If you just run 'xrandr' (with the external monitor plugged in), what do you get?

Adam
 
Old 03-21-2012, 08:08 AM   #9
jdgr
Member
 
Registered: Feb 2012
Location: Ontario, Canada
Distribution: Fedora 18
Posts: 65

Original Poster
Rep: Reputation: Disabled
I just ran it, and I get the message
Quote:
No protocol specified
No protocol specified
No protocol specified
No protocol specified
Can't open display :0.0
 
Old 03-21-2012, 08:18 AM   #10
jdgr
Member
 
Registered: Feb 2012
Location: Ontario, Canada
Distribution: Fedora 18
Posts: 65

Original Poster
Rep: Reputation: Disabled
Now I also just rebooted again, and my monitors have gone back into mirrored mode. I ran xrandr again and this was my output
Quote:
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 8192 x 8192
LVDS1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 331mm x 207mm
1280x800 60.0*+
1024x768 60.0
800x600 60.3 56.2
640x480 59.9
VGA1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 443mm x 249mm
1600x900 60.0 +
1280x1024 75.0
1280x800 59.8*
1152x864 75.0
1280x720 60.0
1152x720 60.0
1024x768 75.1 60.0
1024x576 60.0
832x624 74.6
800x600 75.0 60.3
640x480 75.0 60.0
720x400 70.1
DP1 disconnected (normal left inverted right x axis y axis)
Not sure why a reboot "fixed" that issue, but I am going to try xrandr again and see what happens when I specify the resolution.
 
Old 03-21-2012, 08:56 AM   #11
jdgr
Member
 
Registered: Feb 2012
Location: Ontario, Canada
Distribution: Fedora 18
Posts: 65

Original Poster
Rep: Reputation: Disabled
Ok, so after the reboot, I successfully went through this article http://www.ubuntugeek.com/how-change...ng-xrandr.html to set the resolution of my external monitor and it worked. I also was able to use
Code:
xrandr --output LVDS1 --primary --output VGA1 --right-of LVDS1
to turn off the mirroring.

I don't know why it was failing with that error and another reboot fixed it, but it looks good at the moment. I have the proper resolution and it's not being mirrored so it's all good. I just now have to figure out how to set it to always start that way.

Before I mark it as solved though, does anyone know what might have been causing that? Is it possible some drivers or programs just weren't properly loaded and I needed the reboot? I'm not use to having to reboot a linux OS to resolve issues (although its usually my goto on windows PC's).
 
Old 03-21-2012, 09:26 AM   #12
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 396Reputation: 396Reputation: 396Reputation: 396
Were you, perhaps, running the xrandr command from a screen session?

Adam
 
Old 03-21-2012, 09:33 AM   #13
jdgr
Member
 
Registered: Feb 2012
Location: Ontario, Canada
Distribution: Fedora 18
Posts: 65

Original Poster
Rep: Reputation: Disabled
I really don't know what that means :s

I don't boot to a command line and run X from there, XFCE starts immediately with the system (run level 4 I think instead of 3). And in there, I was running all of my commands through a regular terminal window. I tried from both my regular user and the super user with the same result.

What do you mean "Screen Session"?
 
Old 03-21-2012, 10:31 AM   #14
jdgr
Member
 
Registered: Feb 2012
Location: Ontario, Canada
Distribution: Fedora 18
Posts: 65

Original Poster
Rep: Reputation: Disabled
Actually I have noticed 1 issue that is still happening. On my main monitor (the laptop screen, LVDS1), on the bottom, if I move my mouse down there, it will go below the edge of the screen, as if I have another 30-40 pixels of desktop down there. My resolution is still set to 1280x800 on that display according to xrandr, and it was working before I "fixed" the resolution on my external monitor.

Anyone have any ideas on this one? I can't be a coincidence that I fix one monitor and the other screws up...

Thanks.
 
Old 03-21-2012, 11:03 AM   #15
VARNICA
LQ Newbie
 
Registered: Apr 2011
Posts: 11

Rep: Reputation: 0
The way i did to start automaticly, both monitor is to create bash script named .startxrandr


Code:
#!/bin/sh
xrandr --auto --output DVI-0 --mode 1680x1050 --left-of VGA-0

You might want to adjust xrandar options in way to work for you.


and then in .xinitrc file put the

Code:
/bin/sh /home/user/.startxrandar
Maybe there is a simple way, but i did it like this.


Cheers
 
  


Reply

Tags
slackware


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Dual Monitor Xorg Configuration with different resolutions terry84 Linux - Software 6 11-02-2010 12:39 AM
Help with monitor resolutions! cereal83 Slackware 24 02-27-2005 10:10 PM
monitor and resolutions cs-cam Linux - Newbie 2 11-14-2004 06:47 PM
Dual Monitor Support in Slackware 10? wiskic10_4 Linux - Hardware 2 10-17-2004 02:41 PM
monitor resolutions are limited after setting up dual head display in fedora ZorlacBabelfish Linux - Newbie 0 03-11-2004 09:07 AM


All times are GMT -5. The time now is 02:06 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration