Ubuntu :: Check Via Terminal If External Monitor Is Connected?

Apr 20, 2010

Ive been wondering about an alternative method for checking to see if an external monitor is connected.
Currently I am using:

Code:
#!/bin/bash
EXTERN=VGA1
if $(xrandr --prop |grep -q "$EXTERN connected");then
echo -e "$(echo $EXTERN | tr -d [0-9]) is e[1;32mconnectede[0m"
else

[Code].....

So, what I am asking is, is there a way to ignore/over-ride compiz's texture size check, a different way to query xrandr, or is there a completely different method I can go about checking if an external monitor is connected?

View 3 Replies


ADVERTISEMENT

General :: Ubuntu - Run A Script When An External Monitor Is Connected?

May 2, 2011

How can I detect when an external monitor is connected in linux? I need to run various scripts to set up my workspace. Is there some clever way to kick off a script when the monitor state has changed? I'm using the Nvidia display driver.

View 3 Replies View Related

Ubuntu Installation :: Meerkat Won't Boot With External Monitor Connected?

Oct 30, 2010

Have a Dell Studio XPS with 64 bit Meerkat on it. Whenever I connect my Samsung external monitor by displayport/dvi ubuntu no longer boots. Machine unresponsive and have to cut power and disconnect it. :/

Sounds exactly like this bug, no? [URL] Except for the fact I have ATI video card and the restricted drivers (with Catalyst control center, although it is useless).

Code:
02:00.0 VGA compatible controller: ATI Technologies Inc Madison [Mobility Radeon HD 5000 Series] Win7 install works fine.

View 2 Replies View Related

Slackware :: Automating Xorg RandR Turning Laptop Screen Off If External Monitor Is Connected?

Jan 2, 2010

I have a netbook (Acer Aspire One) I'm running Slackware 13. and usually, I prefer to connect an external monitor. When I switch my machine on with the monitor connected, the display is duplicated on both screens and since I just want the netbook's screen to be off and only see the display on the external monitor, I can doxrandr --output LVDS --off

Great! However, it's a hassle to do this every time I log in and I'd like to automate the process if possible. I did some googling and I found that if you want to automate xrandr commands, you can put a script in /etc/X11/Xsession.d/ (see this). I wrote the following script to automate my xrandr commands and since the Xsession.d directory didn't exist, I tried creating it. The script was called 45custom-xrandr_settings, as the one on the RandR wiki is called the same.

Code:
#!/bin/bash
# Check whether the external monitor is connected

[code]...

View 5 Replies View Related

Fedora :: External Monitor Won't Work - Both Monitor And Laptop Screen Black

Aug 7, 2011

I am having problems getting my external monitor to work. When I plug in the monitor, both the laptop screen and the external monitor go black. When I unplug the monitor, the laptop screen works again.
When I startup with the external monitor plugged in, neither screen works or teh computer hangs or something.

I have had the external monitor going on a couple of occasions. I did manage to configure my monitors through System Settings > Display. I turned off the laptop monitor as I just want to use the external. But after rebooting, things didn't work.

I have a Thinkpad E420, Fedora 15

View 14 Replies View Related

Fedora :: Set Totem Player To Open In External Monitor And Not In Built-in Monitor

Aug 11, 2011

I have an external monitor connected to my laptop (extended display). I always drag the Totem player from the laptop screen to external monitor to watch video files. I wonder, if the Totem player can be set to open in the external monitor automatically, everytime I open it?

View 1 Replies View Related

Fedora Hardware :: External Monitor Not Detected - Dell Laptop - Monitor

Aug 17, 2011

My software and hardware information are as follows. I have Fedora 12 and KDE 4.4.5 installed on a Dell Vostro 1500 laptop. I believe it's a 64 bit processor; it's an Intel Core 2 Duo CPU. The external monitor is a Dell as well.

My problem is that my system does not seem to be detecting an external monitor that I have connected. Everything else is working just fine; however, I would like to have the option of attaching an external monitor. When I plug the external monitor into the laptop, the external monitor remains black and appears to be in power save mode. The results of xrandr -q (with or without the external monitor attached: it doesn't appear to change) are as follows.

Code:

How can I get my laptop to recognize that the external monitor is even connected? Let me know if I can be more specific or provide additional details.

View 5 Replies View Related

Ubuntu :: Check If Connected Then Launch App?

Apr 16, 2011

Well, i have some applications that i use everyday so i add them to the startup applications, but they require Internet, otherwise the configuration is lost. I'll like a command that first check if i'm connected to Internet and if i am, launch the app. If not, don't do nothing.

This is a problem because for some reason everytime i turn on my laptop the wireless adapter doesn't turn on automatically (it always did when i was running windows).

View 4 Replies View Related

Debian Hardware :: External Monitor As The Main Monitor For A Laptop

Sep 22, 2010

I recently installed Debian, using the amd64 Network Install .iso. I'm using XFCE4 as my desktop environment, and everything is working well... on my laptop's screen.

My desired setup is to have my laptop sitting on a well-ventilated shelf, closed, and to have an external monitor be my main monitor. I want this because I'm using my laptop as my "home" computer, so it never moves, and I don't like the keyboard/trackpad. My laptop has a VGA output, and I can get my desired setup on my Windows partition (not stating a preference ; just that the hardware CAN do what I want it to).

I've been working my way around the Internet for a few days, now, and I've got the commercial NVIDIA driver installed. If I run sudo nvidia-config --twinview I can get my external monitor to be part of the display, which is great, but it's part of a dual-screen monitor setup, which is not what I want at all, because (a) XFCE's multiple virtual desktops are good enough for me and (b) my graphics card is integrated, and I'm trying to squeeze every drop of performance out of my laptop that I can (1 gig of RAM; the less that my graphics card eats into it, the better). Plus, it'd be annoying to accidentally drop something on my laptop's screen, and then have to dig it out of the shelf in order to undo it. I'm not saying that I'm consistently clumsy, but I'd eventually end up doing it.

View 2 Replies View Related

General :: How To Check If LAN Is Connected

Feb 25, 2011

I want to write a script and put it in /etc/rc.local so that
if lan is connected then
rfkill block all
else
nmcli con up id 'Network id' --nowait
How should I write the if part and how should I check for "lan is connected" ?

View 1 Replies View Related

Ubuntu Multimedia :: Check If Display Device Is Connected?

Feb 10, 2010

I am trying to write a script to turn my HTPC off automatically and turn it back on again at a specified interval.

I've got the turn on off bit sorted using /sys/class/rtc/rtc0/wakealarm but I want the script to not turn the machine off if say something is downloading, I am currently watching something etc and i dont think I will have any trouble with that.

But what I would really like to be able to do is tell if my TV is currently on. I dont think anything x11 related would work here and this may not even be possible. Does Ubuntu "know" if it's display device is powered on or not? if so can I interrogate this somehow?

View 5 Replies View Related

Ubuntu Installation :: Cannot Boot Without External HDD Connected

Feb 28, 2010

I just recently installed ubuntu. I had always used windows before, and I wanted to try something different. My laptop's internal HDD is pretty full so I decided to install ubuntu on my 500gb external HDD. It is connected via USB A to USB B. So I run through the installation no problems at all. I partitioned 200gb of the external HDD for ubuntu. After install I could run ubuntu just fine and I really like it.

However now it boots through GRUB. I am not really sure what GRUB is but it says GRUB loading every time I boot up and then lets me choose what os to boot, but if I do not have my external HDD plugged in then GRUB fails to start and I cannot boot at all from my laptop. Is there a way that I can get it to boot windows from the internal HDD without having the external HDD?

View 9 Replies View Related

OpenSUSE :: VNC Without Monitor Connected?

Jan 9, 2010

easy I managed to install Oracle, JBoss and other software, connected to it via VNC. Once finished I decided to move the box to far corner and work with it via putty and vnc. But then problems with vnc started. Whenever I tried to connect via vnc I got background screen with cross cursor and then it stuck, no login screen. I spent a lot of time trying to fix it. I red many forums and this one in partucular : VNC is not working - openSUSE Forums Nothing helped. I have noticed that vnc doesn't work if monitor not physically connected to the box.

Once monitor connected, even if monitor is not powered up, vnc resumed to work correctly. But it looked senseless for me, what a point to have Linux box controlled via vnc if I still have to connect monitor, it drove me crazy !Today I have found a solution and want to share with you. It is not my idea I have found it here :K7V FreeNAS system won't start without a monitor. - alt.comp.periphs.mainboard.asus | Google GroupsThe idea is to create "fake monitor" which cheats graphic card, makes it think a monitor is connected. I have bought a VGA connector then:

Connect 75 ohm resistor from pin 1 to pin 6
Connect 75 ohm resistor from pin 2 to pin 7
Connect 75 ohm resistor from pin 3 to pin 8

[code]....

View 2 Replies View Related

Ubuntu :: Setting The Resolution For A Monitor Connected To Laptop

Jul 16, 2010

I have connected to the VGA output of my laptop a 19" monitor. I setted in Ubuntu the resolution for that monitor to 1280x1024.

Two days ago i connected the laptop to a projector. When Ubuntu detected the projector it ask me for my user password to change "i dont know what".

After using the projector I have connected the laptop to the 19" monitor again. Now I can not set the resolution for the monitor to 1280x1024 (that resolution doesn't appear in the list)....

View 6 Replies View Related

Ubuntu Servers :: Vnc Doesn't Work Unless Monitor Is Connected

Feb 17, 2011

Last night I was able to set up my server so that I can just connect vnc. I even was able to be connected at the log on screen so I could select which user I wanted to log in at. For some reason today, I have to have the monitor plugged in all the until the logon screen comes up before vnc will connect. Once the logon screen is up, I then can connect via vnc & select which user I want to logon as. It's odd because it worked last nigh, but today - Nope nada, it doesn't work & I can't explain why. I did clean up - Removing some applications I don't need on my server. (I'm hoping that isn't the problem) It's odd as well because I don't have to be logged on as a user to connect via vnc, I just have to wait until the logon screen is available...Then I can unplugged the monitor & logon.

View 1 Replies View Related

Ubuntu Servers :: Allowing FTP Access To External HD Connected To PC?

Apr 19, 2010

I have proftpd setup on my Aspire Revo (which I'm using as an HTPC) so that I can download files to my mac when I feel like watching in bed or whatever. I recently purchased a 1TB WD Elements to store my media. I have proftpd setup so that I can access every file on the computer. However, when I try to gain access to the Elements HD, I get an FTP error from Cyberduck that says:

/media/Elements: no such file or directory

Note that I have not formatted the drive or anything - just set it up straight out of the box. My media is loaded on to it, and XBMC reads the files fine. Is there a way I can enable the hard drive (or the OS) to share these files over FTP, or is this not possible?

View 3 Replies View Related

Ubuntu :: 10.10 Grub Rescue (won't Boot) When External Hdd Is Connected

Jun 12, 2011

I have grub 1.98 and it boots fine with out my usb hdd connected but brings me to grub rescue when it is.

It takes me to grub rescue and tells me that it cannot find device: "UUID"

This UUID is not even the UUID of the drive that I cannot plug in if I want my computer to boot to grub.

Here is blkid with the usd hdd plugged in after boot:

Code:
/dev/sda1: LABEL="System Reserved" UUID="BA56FD4B56FD0941" TYPE="ntfs"
/dev/sda2: UUID="E23E02D93E02A71F" TYPE="ntfs"
/dev/sda3: UUID="9579da2d-5ba0-407c-a95d-9f134a1417f3" TYPE="ext4"
/dev/sda5: UUID="caefabd7-c8f0-4fca-8005-d682ae939b91" TYPE="swap"

[Code].....

View 6 Replies View Related

General :: Does Not Recognize - No Scanners Detected - Please Check Your Scanner Is Connected And Powered On

Aug 11, 2010

I have HP Scanjet 3770. UBUNTU 10.04 installed on my desktop. HPLIP also installed. This scanjet working well in Windows Xp but in ubuntu SimpleScan does not recognize it.

It shows:- No scanners detected Please check your scanner is connected and powered on.

I Also visited [url] & found as below-

ScanJet 3770 Unsupported. While an external binary-only backend exists, it works only on Linux i386. Therefore the scanner is unsupported on other platforms.

View 2 Replies View Related

CentOS 5 Networking :: Which Command Can Check If Network Card Is Connected With Media

Nov 26, 2009

Suppose that it is not convenient to go behind a machine to have a look.So I want to use a command to show whether the cable is plugged into network card. (Media connected or not)Can ifconfig do this? Or another one?

View 2 Replies View Related

Fedora :: 11 Won't Boot Without A Monitor Connected?

Nov 17, 2009

lt a file server using Fedora 11, and it works great if the monitor is connected. If I disconnect the monitor, Fedora 11 won't boot; it hangs. I have found many people having the same problem, but no one seems to have a solution.

View 8 Replies View Related

Ubuntu Multimedia :: Monitor Is Connected Via An HDMI Cable But No Signal

Jul 21, 2011

I am running 11.04 on a new Gateway with 8 gigs of ram. It is a solo installation. The monitor is connected via an HDMI cable. Everything was great (installation running smoothly for over a month) until last night. I just installed a netgear router and was setting it up with the system to try to get Stanza on my IPAD to connect to Calibre. Anyway, i suffered a severe freeze up warranting a hard boot. I could see the drive working, ancillary drives lit up, keyboard lit up so I know the system is working. The monitor did not come on, It shows a yellow light indication no signal. It is a 28" Hansspree. I tested the monitor by hooking it to a laptop. The monitor is fine. I cannot see anything on the screen so I can't boot to repair mode or use a CD. There is no signal.

View 1 Replies View Related

Ubuntu :: External Hard Drive Connected But Not Shown Mounted

Aug 12, 2010

Hard drive is connected to my Inspiron 1525 via USB, plugged in and I'm not seeing the new drive mounted. Restart doesn't fix things and manually trying to mount /dev/sdb1 doesn't work either. The drive I got is preformatted as NTFS and I've been using a logical partition formatted as NTFS as a sort of share drive between my Windows partition and Ubuntu partition, so I know I have NTFS set up properly. This is the hard drive I'm working with for reference.

View 3 Replies View Related

Ubuntu :: Won't Boot To The Internal Drive (with Vista) Unless The External Is Connected

Apr 27, 2011

I have an HP Pavilion that was/still is running Vista. I recently decided to dual-boot to Ubuntu from an external hard drive. Both systems will boot up fine its just that for some reason it won't boot to the internal drive (with vista) unless the external is connected. I just put the HD in another laptop only to have the same problem.

View 7 Replies View Related

Debian :: Monitor Not Detected Unless Connected With HDMI

Nov 13, 2015

I noticed that Debian 8 has a significant bug related to detecting presence of display(s). Today, I woke my computer from sleep while the LCD monitor was unplugged from power (the monitor is connected via DVI) then I powered the monitor but nothing was displayed. Next, I connected another monitor via HDMI and both screens started working. However after disconnecting HDMI cable from the second monitor the first one with DVI stopped showing anything. The conclusion of this situation is that HDMI monitor must be connected all the time.

I thought that this is caused by graphics driver, but I experienced the problem on different machines, one with nvidia driver and DVI, and the second with default free driver and DisplayPort.

I just checked that this is related to KDE. After switching to console using ctrl+alt+f1 the screen turns on, but when I am going back via ctrl+alt+f7 the screen disappears.

View 2 Replies View Related

Ubuntu Networking :: Use Apcupsd To Monitor Smart-ups 2200 Without It Being Connected To A Server?

Mar 30, 2010

Can I use apcupsd to monitor my smart-ups 2200 without it being connected to a server? I have set the TCP info on the APC and can telnet into it, but I'm kinda confused by what I've been reading in the apcupsd documentation.

If someone can tell me about there experience doing this and best practice that would be awesome.

View 1 Replies View Related

Ubuntu Networking :: Remote Server 11.04 Connection Refused When Monitor Not Connected

Jul 14, 2011

i done desktop config in ubuntu server 11.04 and connected via tightvnc,uvnc and in remote desktop viewer from another ubuntu machine also. I am not able to access(connect) the server in GUI mode(when monitor is removed) but i putty is working fine in cmd line.

View 1 Replies View Related

Ubuntu :: External Storage Drive Appears Connected Whilst Removed?

Jul 21, 2011

I have properly ejected a USB memory stick and removed it from the port, but it remains in my 'Places', on the side pane of Nautilus. The /media directory is empty.

View 1 Replies View Related

Ubuntu :: External - Surround Speakers Connected To Laptop Not Working / Solution For This?

Oct 28, 2009

Im using Ubuntu 9.04 in my acer aspire 6930 laptop. Inbuilt speakers in my laptop is working, however the external or surround speaker system say 2.1 connected to my laptop is not working.. i just want to know possible solutions for this challenge..

View 4 Replies View Related

Ubuntu Networking :: Program \ Use To Monitor The Number Of Computers That Are Connected To Network And Block Them?

Feb 1, 2011

i have recently had a house mate move in and he is using my wireless network, even though i asked him not to give out the network key to his friends either he has or they have hacked my network and are using it when they come over, is there a program i can use to monitor the number of computers that are connected to my network and block them, or is there a way i can just wee what is going on. They seem to just connect and i don't want to have to change the password particularly because that involves changing it on multiple devices.

View 1 Replies View Related

Fedora :: Can't Get Monitor Which Is Connected To Nvidia Gt218 To Work Properly

Sep 6, 2011

I have 3 monitors and two video cards. In my ATI HD 6750 I have the DVI going to monitor one and the VGA for that card going to monitor 2.

[burnyd@dynamips ~]$ lspci | grep VGA
01:00.0 VGA compatible controller: ATI Technologies Inc RV710 [Radeon HD 4350]
03:00.0 VGA compatible controller: nVidia Corporation GT218 [ION] (rev a2)

The second card (Nvidia GT218) I have the DVI connection going to monitor three Monitor one and two for the ATI work perfect but I cannot get monitor three which is connected to the nvidia gt218 to work properly. I tried editing my own xorg.conf file but that did not work, I have a windows 7 install on this box that works properly. I cant seem to make this work with the third monitor and the nvidia video card.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved