Debian Multimedia :: Using Xrandr To Toggle Laptop Display
Jun 3, 2015
Background: I am running Debian 8 with the Xfce DE on my Toshiba Satellite Laptop.
When at home I will connect my laptop to an external display. I did the same while I was running Ubuntu; however, with Ubuntu I could activate my laptop display by simply disconnecting the external monitor. With Debian + Xfce, unplugging the external monitor leaves my laptop screen blank.
In order to activate my laptop display, I have to open Display settings, turn on laptop display -- which still leaves my laptop screen blank -- and then switch resolution: there are two listings for 1366x768 under resolution, and only the second one restores my laptop display. Please note that if I have both displays on at the same time the size of the output on my external monitor will be reduced to about the size of my laptop's display.
I would like the create a Bash script which can automatically switch between my displays. After some Googling it seems like xrandr is the tool I need for the job. However, I have been having trouble getting it to work.
I tried the command Code: Select allxrandr --output LVDS1 --auto --primary --output HDMI1 --off. This however just turns my external display off without turning on my laptop's display. I suspect this has something to do with the fact that LVDS1 has two modes at 1366x768; perhaps only one of them can actually display? I'm not sure, but anyways here's the output of xrandr:
Code: Select allScreen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
LVDS1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
  1366x768   59.99*+
  1360x768   59.80  59.96Â
  1024x768   60.00Â
  800x600    60.32  56.25Â
[Code] ....
Is there a way I can specify that xrandr should use the second 1366x768 mode?
I just realized that the second mode is, in fact, 1360x768 rather than 1366x768...
The good news is that I fixed my problem. It turns out that my backlight was not turning on, giving the appearance that my laptop screen was not displaying anything.
View 2 Replies
ADVERTISEMENT
Aug 24, 2010
I have been running linux on my thinkpad r50 for about a year, specifically 9.04. The problem is with this new 10.04 lts installation when I go to hook up an external monitor via the avg port and run xrandr to initialize the display, the laptop monitor panel becomes a garbled image and the television that is attached to the computer says no input. As of now I am stumped and open for assistance on this one.
View 1 Replies
View Related
Sep 19, 2015
I've just completed my first pc build, and installed Ubuntu 8.2. My build was focussed around a legacy Apple Cinema 30" display, which has 2560x1600 @ 60fps resolution. The motherboard - Gigabyte H97N-Wifi - supports that display, although the display drivers are supplied by Intel, and are therefore nonfree. On startup, my display resolution defaults to 1200x800. This is what /var/log/Xorg.0.log says about it:
Code: Select all[snip]
[ Â Â Â Â 1.830] (II) intel(0): Output VGA1 has no monitor section
[ Â Â Â Â 1.881] (II) intel(0): Output HDMI1 has no monitor section
[ Â Â Â Â 1.882] (II) intel(0): Output HDMI2 has no monitor section
[ Â Â Â Â 1.882] (II) intel(0): Output HDMI3 has no monitor section
[ Â Â Â Â 1.933] (II) intel(0): EDID for output VGA1
[ Â Â Â Â 1.986] (II) intel(0): EDID for output HDMI1
[ Â Â Â Â 1.986] (II) intel(0): Manufacturer: APP Â Model: 9232 Â Serial#: 33555281
[code]...
I bumped into a webpage which stated that xrandr does not work with proprietary drivers, and if that's true, I can't get it to change resolution on my screen.
View 2 Replies
View Related
Dec 22, 2010
I can run xrandr and I get the various modes thatwill supposedly work with my monitor.Then, I run xrandr -s 800x600 and the command tells me thathat mode is unavailable, even though it claims that it is in xrandr -s.What on earth does that mean, then?
View 4 Replies
View Related
Jun 3, 2011
I have problems with xrandr in a system with Nvidia GeForce 8600GT video card. I want to use xrandr to rotate the screen on the fly.
~:$ xrandr -q
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 320 x 175, current 1600 x 1200, maximum 1600 x 1200
default connected 1600x1200+0+0 0mm x 0mm
1600x1200 50.0*
1600x1024 51.0
[Code]....
I tried enable the last option, change values for xinerama and twinview, but nothing works.
View 1 Replies
View Related
May 13, 2015
Updated old Eeepc 1005HAB to Jessie. Used to have a text file:
xrandr --output LVSD1 --mode 1024x600 --fb 1024x768 --panning 1024x768"
that I could run (twice in a row, it needed) to allow the scroling of the screen to see the bottom 1/4.
This no longer works.
View 0 Replies
View Related
Jan 29, 2016
I just switched from Ubuntu to Debian and I am having trouble doing something that I found easy to do with Ubuntu. I have a Radeon R9 graphics card from MSI with dual DVI ports and I'm trying to get xrandr/arandr to detect my dual monitors but it only detects one. I've installed all the drivers and even installed the "amdgpu" driver from the Ubuntu repository but still not detecting. What drivers am I missing?
View 1 Replies
View Related
Mar 17, 2011
Are you running Lenny? If yes, try this:
Be sure that there is an active X.
Press Ctrl+Alt+F1 to switch to tty1.
Login with your normal username and password.
Enter the command: "xrandr -d :0.0 -q"
You should be rewarded with information about your current screen.
Are you running Squeeze? If yes, try the above procedure and please explain to me what this means: No protocol specified
Can't open display :0.0
View 1 Replies
View Related
Feb 26, 2011
I have a dual Monitor Setup, both SXGA LCDs, one rotated left. With kernels and Xservers available from debian making settings appropriate kills X and apparently leaves modesetting and keyboard missconfigured - monitors say: no signal and it is not possible to switch to any VT until sysrq-unraw (alt-print-r) is pressed, which makes the system responding to keyboard, but still leaves the screens blank. Restarting the display manager sets a working mode with both screens showing the same.
View 1 Replies
View Related
Feb 25, 2010
I just installed Kubuntu on my computer running win xp. I have had problems with the resolution because it only lets me set it at 800x600. I have read many of the post here and most of them tell your to use xrandr or xorg config. When i run the xrandr iI end up with a message saying can't open display and also when i try the xorg confing. I installed kubuntu using wubi.
View 3 Replies
View Related
Sep 17, 2010
I am wondering if it is possible turn off my display with a key of my laptop's keyboard. I mean if I press ctrl + o then my display turn off and then if I press ctrl + o my display turn on.
View 5 Replies
View Related
Oct 23, 2010
Recently I install ubuntu 10.10 on my Sony Vaio laptop. After the CD boot I always got a black screen, after a week i figured that there's nothing wrong, it's just the screen doesnt show up on my laptop's screen. So I use an external monitor and It showed up as normal.
But I need to have it show up on my laptop's screen. I tried to use "additional driver" to activate latest Nvidia driver but after that even my external monitor doesnt work too. Latest driver doesnt work properly i guess. I did try to install older driver version manually but after I turned of gdm, install driver and reboot, my ubuntu always starts with tty1 command terminal. tried ctrl+alt+7 but it stucked at (checking battery state), startx doesnt help me return to graphical screen too.
I got help from a moderator here but the best result so far is to edit my /etc/default/grub. Change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"
Sudo update-grub
after the reboot I have it shows up on my laptop's screen. But it seems low-bit color,a bit grand to me(compared to external monitor, both w/o driver). Anw i checked system/preference>monitor . It showed up that my monitor:unknown. I can't choose other resolutions, refresh rate = 0.
I always know its my widescreen is the problem. I have had a lot of problems dealing wgames/application (on windows) can't work on 16:9 mode. install a stable Nvidia driver
Everything I tried in the past weeks is in here [URL] My laptop is SONY VAIO VPCCW19FX, Nvidia GeForce GT 230M, widescreen monitor
View 4 Replies
View Related
Dec 3, 2010
I'm using a NVIDIA 9600M GT on my laptop running Ubuntu 10.10. The laptop has a 16:10 display, I also connected my 16:9 LCD TV via HDMI. I would like to use them as clones. The problem is, as my TV has a different aspect ratio than my laptop display, the image does not fully fit on the TV. For example, when using a resolution of 1280x800 (16:10), one tenth of the width of that image is missing on my TV, as it has an aspect ratio of 16:9.
In Windows, the NVIDIA software stretches the image so that it appears a little distorted on my TV, but at least I see everything. Is it possible to do that in Ubuntu?
View 1 Replies
View Related
Jul 14, 2015
I want to display the image only on the VGA external screen. When I am connecting VGA cable, the image not displaying on the VGA external screen.
My notebook specifications:
- Lenovo G505s
- CPU: AMD A10-5750M APU with Radeon HD Graphics
- Video card: Radeon HD 8650G
- Operating system: Debian 8 64bit
View 8 Replies
View Related
Jul 15, 2015
Today I installed debian-8.1.0-amd64 on my older Samsung Laptop (Model r560). The installation without a desktop environment worked fine and the system booted without any problems into the virtual console. There was however one problem: when I was away from keyboard for some time, the screen turned black and when I came back and hit a button to wake the system up, the laptop immediately restarted. Later I installed the gnome desktop environment. This also worked fine.
But whenever I try to change the screen brightness in the gnome-shell, my system immediately restarts and successive attempts to boot debian fail. Some time later and after countless attempts to boot debian, it finally does boot again. By "debian fails to boot" i mean the following: The initial ram disk is loaded and fschk runs. Usually the system suddenly reboots at this point. SOmetimes, however, the video mode changes, the console font is changed and some services are getting started, but then at some point the system also restarts. I don't reach the point where a login prompt appears, or the graphical environment starts up.
Assuming, it has something to do with buggy acpi implementation of my hardware, I tried the following:
I tried to disable acpi completely by using the kernel parameter "acpi=off". This doesn't work and causes the kernel to hang
I tried to start debian without using a GUI using the single parameter. This also didn't work.
acpi_backlight=vendor also did not fix the problem.
View 0 Replies
View Related
Jan 17, 2011
I have a HP Compaq nx9010 laptop with 1 gig of memory and 128mb being dedicated to video memory. The graphics chip is ATI Radeon IGP 345M.
I can only set my resolution to 1024 X768. If I try to change it to any other size or try to play any games, the video has millions of jerky horizontal lines going through it. If I hookup an external monitor the video works just fine. Being new to linux and even newer to installing on it laptops, can anyone tell me what if any thing can be done to correct this. I am running Ubuntu 10.4 LTS.
View 1 Replies
View Related
Jun 2, 2011
Now that nVidia is up and running, I'm curious to do a comparison with Nouveau. I there an EASY way to do this? Like a simple on/off switch? Major system/kernel changes are not an acceptable option. If it can't be easily done, I'll just stick with nVidia.
View 4 Replies
View Related
Feb 14, 2010
I'm using an IOGEAR KVM Switch to switch between my newly built PC and Xbox 360. I've been using it for a while on my 360 with no problems, but to switch inputs you have to use a hotkey on a keyboard that is connected to the KVM switch (there is no button on the KVM switch to toggle between inputs). My KVM switch is compatible with Linux, but each time I plug in my Logitech Wired Wave keyboard into my KVM switch and use the hotkey it fails to switch the input. The hotkey is the Scroll Lock key on the keyboard, and the Logitech Wired Wave keyboard doesn't have a key dedicated to that function.
So I use the key combo for Scroll Lock, which is Fn + Pause/Break. I haven't mapped out all the keys on this keyboard yet, but I figured it should already be mapped out, since all the other basic keyboard keys are working. I managed to switch the toggle key from tapping the Scroll Lock key (combo) twice to tapping the Control key twice, after finally figuring out the manual's long and convoluted key combinations to change the input toggle key setting. If anyone else encounters this problem I would direct you to the Page 11 of the product manual, which is available at the product page linked to above.
View 1 Replies
View Related
Feb 23, 2016
Using Jessie, Iceweasel 38.6.1 and
Shockwave Flash
File: libflashplayer.so
Path: /usr/lib/flashplugin-nonfree/libflashplayer.so
Version: 11.2.202.569
State: Enabled
Shockwave Flash 11.2 r202
Cannot view video from [URL] ....
Pop-up window says Silverlight is required to play videos on Toggle.
Google around but no Silverlight for Linux.
View 4 Replies
View Related
Mar 25, 2010
I'm trying to hook up my TV to my MacBook1,1 laptop running the Lucid Lynx Beta. The TV is connected to the laptop via a mini-DVI to DVI-I adaptor, which is connected to a DVI-I to video adaptor, and this is connected to the TV via a component cable.
Under OS X, after plugging in the mini-DVI cable, the TV automatically becomes a secondary display for the laptop (extending the current screen), so from a hardware perspective everything seems ok. Under Ubuntu, plugging in the mini-DVI cable elicits no response from XRandR whatsoever (xrandr -q reports DVI1 disconnected both before and after). URandR and the regular "Detect Displays" button in the "Monitors" preference app do nothing. The laptop has an Intel GMA 950 chipset, and the Intel driver is running successfully (Compiz works fine). I have a clean xorg.conf (generated by X -configure), except for the addition of "Virtual 2048 2048" in one of the SubSections of the Screen section. I'd be happy to post the full xorg.conf if it would be useful.
So far I have tried xorg.conf tweaks, and I have followed instructions to manually tell xrandr to output to DVI1 as described in the comment by Marko Mikulicic here.
View 1 Replies
View Related
Jun 23, 2010
I have been arguing with my acer aspire one laptop since I bought it in terms of the screen resolution and have never been able to solve the problem, although I seem to be getting close. I just updated to 10.04 (the netbook remix).I have been following the instructions for how to fix it here. The result was this:
Code:
liz@Pippin:~$ cvt 1366 768
# 1368x768 59.88 Hz (CVT) hsync: 47.79 kHz; pclk: 85.25 MHz
[code]....
View 3 Replies
View Related
Dec 30, 2010
how Xrandr supports Dual screens. I am attempting to setup Dual Screens on a Ubuntu 10.10 System with an ATI twin head card (DVI + HDMI) Non-mirrored, separate desktops However on connecting a device to the HDMI output - the DVI screen output appears to loose all panels, icons. Only the mouse pointer & desktop background remains.
I believe the output is defaulting from screen 0 to screen 1. I found a solution by creating two devices in xorg.conf and assigning one for each separate screen. BUT this created a new problem of loosing my mouse pointer. how I can get my mouse pointer working or the correct way to setup dual screens.
[URL]
View 9 Replies
View Related
Jan 6, 2010
I am setting up a display system that will not have a keyboard/mouse and automatically boots into gnome and starts up firefox to a display page. The page is optimized to a 720p resolution which I can set when we use a TV for the display, but is not an option if we use a monitor. I am trying to find a way to set the resolution to 720p automatically on boot up. I am always using 16x9 displays with a DVI connection (to HDMI on TVs)
I was able to get one monitor working by creating a script and setting it to load in the Startup Applications as shown:
Code:
#!/bin/bash
scnres="1280 720 60"
modeline=$(cvt -v $scnres | grep Modeline)
modeline=${modeline#Modeline }
[Code]....
View 2 Replies
View Related
May 6, 2014
I have a notebook Asus X-serie with a
Code: Select all# lspci
00:00.0 Host bridge: Intel Corporation ValleyView SSA-CUnit (rev 0c)
00:02.0 VGA compatible controller: Intel Corporation ValleyView Gen7 (rev 0
00:13.0 SATA controller: Intel Corporation ValleyView 6-Port SATA AHCI Contller (rev 0c)
00:14.0 USB controller: Intel Corporation ValleyView USB xHCI Host Controll (rev 0c)
[CODE]..
However I would like to display the same too onto my CRT. My crt of my pc notebook is blank. Nothing. I read a lot and nothing. I read on xrandr but few info:
Adding new modes
Under some circumstances, some modes might be missing. For instance, if the monitor does not report correct EDID information. Or if the output didn’t have a CRTC available at startup because another output was using it and you disabled it in the meantime.
If a mode exist, you may add it to one output with:
$ xrandr --addmode VGA1 800x600
If the mode does not exist, you may first create it by passing a modeline:
$ xrandr --newmode <ModeLine>
View 0 Replies
View Related
Nov 25, 2015
DE: lxde
version: Jessie
using xorg file: no
After changing my video cards from gigabyte HD5450 and saphire X550 to two saphire r7 240s one of my debian installs no longer supports rotating the monitors either with 'Monitor Settings' or xrandr. The only difference between these 2 Jessie installs is that one was upgraded and the other one was fresh. The problem is with the upgraded one. On the fresh installed debian I just put the ati proprietary driver so I won't do further testing on it but xrandr was working fine on it before that.
I tried going over the ATIHowTo [URL] .... and everything looks good. Tried purging the non free firmware and reinstalling. I verified the version numbers of libxrandr2 and kernel of both installs. It is either some scrap left over from wheezy or a configuration file I am not aware of.
So what actually happens is xrandr does not say anything, blanks out all windows on the screen with only their background color and title bar showing, changes the lxpanel to its background pattern except for 2 blanked out boxes almost to the right of the screen( I have 10 tray icons there before it blanks), activates the screen I wanted to rotate with the proper rotation. On my main screen I can't click on anything. On the rotated screen I can right click and I get my openbox right click menu like I do on my main monitor before the command but when I try to run something nothing happens. The only way I can get out of this situation is to go to ctrl-alt-f1, log in as root and type 'service lightdm restart'.
Both of these monitors are connected to the primary video card, an ati r7 240 saphire. The main one is on vga and the other one is on DVI. I also have another monitor connected to HDMI but it's not being used. I have yet another monitor connected to the VGA of the secondary GPU I don't think it's a problem is it? I tried not using 'xrandr --setprovideroutputsource 1 0' and it still did the same thing.
I tried just launching openbox with no LXDE and it did the same thing.
Also another strange thing is when I stop the lightdm service and try to 'startx' or 'xinit' my screens go blank; numlock, control-alt-delete and control-alt-f1 do nothing and the only thing I can do is an emergency REISUB. I didn't configure this install to use startx or xinit yet but should it really lock up my system?
On the affected system my script looks like this (I already did this step by step and the 'rotate left' line is causing the problem):
Code: Select allxrandr --setprovideroutputsource 1 0
xrandr --output VGA-0 --primary --mode 1680x1050 --pos 0x0 --rotate normal
 --output DVI-0 --mode 1680x1050 --pos 0x1050 --rotate left
 --output HDMI-0 --off
 --output VGA-1-1 --off
lxpanelctl restart
Additional info:
Code: Select all$ inxi -G
Graphics:Â Card-1: Advanced Micro Devices [AMD/ATI] Oland PRO [Radeon R7 240]
      Card-2: Advanced Micro Devices [AMD/ATI] Oland PRO [Radeon R7 240]
      Display Server: X.Org 1.16.4 drivers: ati,radeon (unloaded: fbdev,vesa)
      Resolution: 1680x1050@59.88hz, 1680x1050@59.95hz
      GLX Renderer: Gallium 0.4 on AMD OLAND GLX Version: 3.0 Mesa 10.3.2
[Code] .....
View 14 Replies
View Related
Jan 1, 2011
GNOME decided not to use the correct resolution ever. In Ubuntu, it got it automatically and that said it should be 1366x768, and when i run this:
Code:
xrandr -s 1366x768
I get
Code:
Size 1366x768 not found in available modes
So then I tried to run xrandr and find out what was available and I got:
Code:
$ xrandr
Screen 0: minimum 640 x 480, current 1024 x 768, maximum 1024 x 768
default connected
[code]....
So when I try to change it to 1024x768, I get the same "not found in available modes" message.
View 9 Replies
View Related
Dec 14, 2014
How could xorg be set-up such that different monitors work with different DPI but still compose the same extended display?
I have a 15 inch laptop display extending to the right the main display which is 23 inch. The resolutions are comparable, but the difference in pixel size is very large. Thus, either the external display has too large fonts and UI, or the laptop one has them very small. Moving them at different distances is not entirely possible.
xrandr info:
eDP1 connected primary 1920x1080+2048+0 (normal left inverted right x axis y axis) 344mm x 194mm
VGA1 connected 2048x1152+0+0 (normal left inverted right x axis y axis) 510mm x 287mm
I heard that Windows has a hack (which I can't check) for extending displays with different pixels sizes: it computes in which of the displays a window has most of it's surface and sets the DPI for that window based on that. Thus a window will change DPI when crossing monitors, (and will look too small/large on one of the monitors if it is in the middle).
View 0 Replies
View Related
Mar 7, 2015
I am using xfce4 and in this image
The top bar only shows the bottom half. the bottom bar only shows the top half. i also can't see anything after the r in centre on the right. part of the initial picture on the left also does not display.
My thought is that the tv it has a resolution of 1920x1080 and this is causing the issue. i have this in my xorg.conf:
Code: Select allSection "Screen"
  Identifier   "Screen0"
  Device     "Device0"
  Monitor    "Monitor0"
  DefaultDepth  24
  Option     "metamodes" "nvidia-auto-select +0+0; 1920x1080_60 +0+0"
[Code] ....
The graphics card is
Code: Select all02:00.0 VGA compatible controller: NVIDIA Corporation C77 [GeForce 8300] (rev a2)
Changing metamodes to 19200x1200 doesn't change anything.
View 4 Replies
View Related
Sep 29, 2010
I've been dual booting Lenny and Squeeze but after replacing Lenny with a fresh Squeeze using ext4, the video display has been strange. The effect is similar to running a live CD, where a click does nothing for a few seconds while the CD winds up and gets to the application, but slower than that. Sometimes the display has patches of several windows all mixed up, zig zag patterns like a TV that is too far from a transmitter to receive a good signal and sometimes the mouse freezes in moving around. When I boot and don't start X, everything works perfectly, no delays, no messed up windows.
My video is ATI x1300 with Radeon driver. What is the best way to get the system to use only vesa, to see if that works, instead of ati or radeon? is possible to use grub.cfg or /etc/defaults/grub or /etc/grub.d/ ? I couldn't find any reports of problems with Xorg used by Squeeze, so it seems to be the ATi driver or the radeon driver.
View 3 Replies
View Related
May 20, 2011
I have an ATI Radeon 5850 card with 2 17" monitors, plus a 46" TV via HDMI (disabled, except for BD plaback under windows) under Debian 6.0/Squeeze. When I first installed this system, it worked fine with all 3 screens (only 2 enabled at a time). Sometime in the past few weeks though, it's decided to revert to a single-display setup. I can't find any errors in the logfiles, and it works perfectly fine when I re-enabled the secondary display via the ATI Catalyst Control center.
The auto-generated xorg.conf isn't configured to use the second display (even after re-generating one using "aticonfig -initial=dual-head"), and it is not being modified when I change settings in the Catalyst Control Center.Updating display settings after every boot is just a bit annoying.
View 2 Replies
View Related