Software :: How To Programmatically Determine Monitor Type

Jul 7, 2010

I know the tool system-config-display can tell me all about my display but it's not available on all systems and so I'm looking for alternative ways to get my monitor type. Ideally, I could just look in /proc but I don't see anything there and I would like to be able to do so from a script perhaps written in bash or perl. Is there some place to get this info, say in a config file somewhere?

View 2 Replies


ADVERTISEMENT

General :: Cannot Determine Filesystem Type Of Partition?

Feb 27, 2011

As per these instructions, I got up to the end of the "Acquiring an Ubuntu filesystem" step (where it asks you to mount the newly created Ubuntu partition) and ran into a problem: The partition won't mount, as the file system type cannot be determined because I cannot remember the file system used during installation. Is there any command that prints the file system type of GPT partitions?

View 5 Replies View Related

General :: Determine Distribujtion Type, Use A Redhat 9?

Nov 8, 2010

i can i determine my distribujtion type, i use a redhat linux 9, i need to knw for download benefits, cause its seems am alwyas downloadin the wrong software for my package.

View 8 Replies View Related

Debian Multimedia :: Rhythmbox Could Not Determine Stream Type

Apr 17, 2011

I was using Rhythmbox to listen to internet fine in Squeeze.After updating to Wheezy, some stations give me error "Could not determine stream type" - I think I have installed all the gstreamer packages - so how can I tell what is missing?

View 3 Replies View Related

Fedora :: Determine Optical Disc Type From Terminal?

Feb 3, 2010

From the terminal, or a script, how can I determine the media type (CDDA, DVD, ISO, etc) of a mounted optical disc? I need this for an automated script on my headless media server - Fedora 12 64bit.

View 2 Replies View Related

Debian :: Determine File Type On Bash - Command Not Found

May 10, 2015

I cannot find a bash command: "file" !

It say "-bash: file: command not found"

"file" is used to determine file type on a bash right ? is there a package i have to install ? deprecated ?

I use debian wheezy distro

View 2 Replies View Related

Fedora Security :: How To Determine What Type Of Files Clamav Can Scan

Dec 7, 2009

How to determine what type of files clamav can scan? For example, if there is no unrar installed it can't scan files in it. So is there any way to find out all types of files that clamav can't scan?

View 2 Replies View Related

General :: GRUB Legacy - Unable To Determine The File System Type?

Dec 8, 2010

I had only Arch on an HDD.sda2 was "/".Now it's with Windows XP and sda2 is not a root any more but a container partition wich has sda{5,6,7} in it. I configured the dual boot and it works. It finds Arch and boots it, but not completely. Stops after some time and says: unable to determine the file system type of /dev/sda2. FSTAB is configured, sda{5,6,7} are on their places. So I can't boot Arch. XP boots correctly. What do I do with this error?Also it says: try adding rootfstype=your_filesystem_type to kernel command line.

View 4 Replies View Related

Programming :: How To Determine If VGA Monitor Plugged In

Sep 2, 2010

Does anyone know a way (hopefully a standard/generic way, e.g. through sysfs the interface) to determine if a VGA monitor is plugged in on Linux?

View 2 Replies View Related

Fedora :: Determine Which Process Belongs To Which Window In System Monitor?

Feb 26, 2011

I have Fedora Linux 13 64bit system. I use System Monitor to check which process is taking how much memory and cpu. Normally I have dozens of Chrome and Firefox windows open. The Processes tab shows which process is taking how much cpu/ram resources but I unfortunately there is no option like right click and make the window active that matches the PID (the one process that I have currently highlighted). Usually there is a chrome process taking up 30 or 40 percent of CPU while dozens other chrome processes taking much less cpu. I must determine which chrome window ( or any application which has multiple instances running) is taking that much CPU time. So can some one help me to solve this problem?

View 1 Replies View Related

General :: Fedora - Determine Which Process Belongs To Which Window In Monitor?

Feb 26, 2011

I have Fedora Linux 13 64bit system. I use System Monitor to check which process is taking how much memory and cpu. Normally I have dozens of Chrome and Firefox windows open. The Processes tab shows which process is taking how much cpu/ram resources but I unfortunately there is no option like right click and make the window active that matches the PID (the one process that I have currently highlighted). Usually there is a chrome process taking up 30 or 40 percent of CPU while dozens other chrome processes taking much less cpu. I must determine which chrome window ( or any application which has multiple instances running) is taking that much CPU time.

View 1 Replies View Related

Ubuntu :: Unable To Determine File Type Of Any Of Video File

Oct 14, 2010

I am writting a script to allow uploading of certain files. I want to limit the files by their filename and mime type, and by making sure the two match up.The first thing I need to do is make sure I've got all the mime types I need added. I have never done this before, but I understand that 'file' (which is what PHP's mime-type finding is based off of) uses magic databases that tell at which point in the file should have signatures of the filetype.

My trouble started when I was unable to determine the filetype of any of my video files. Currently, I have some .MOV and .MP4 files that I am using to test.

View 4 Replies View Related

General :: Fedora 12 How To Specify Monitor Type On Bootup

Jan 15, 2010

I have a cheap usb kvm that doesn't pass the EDID data back to the computer from the monitor. And now Fedora 12 seems to rely on autodetection of the monitor to start up at the proper resolution. When I have my samsung 712N on the kvm, fedora 12 boots to only 800x600 max resolution. If I connect the monitor directly to the computer video card, fedora sets the screen resolution to the desired 1280x1024 properly.

When booted through the kvm, fedora won't let me detect or select the correct monitor, and I haven't found any way to work around the problem other than pulling the monitor off the cable, connect to the cpu, reboot. After it's booted I can reconnect the monitor to the kvm and the video is fine.

My question is does anyone know how to manually tell Fedora 12 at startup what kind of monitor I'm using and skip the bootup monitor detection? So far I've spent a couple unproductive hours with google to discover this isn't a totally uncommon problem and no site I've found seems to have any solution.

View 2 Replies View Related

Ubuntu :: 11.04 - Proper Monitor Type To Display All Resolutions

Jul 17, 2011

I just installed Natty (11.04) on an old computer for my disabled brother with:

* Video Card:
00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 01)
* Monitor:
VGA Mitsubishi Diamond Pro 750SB (old CRT monitor)

The problem is that when I select System -> Preferences -> Monitors, the monitor is shown as unknown and it only allows me to set 1280x1024 (shows 0Hz as display refresh rate) which is way too high for my brother. I was wondering if there's a way to select the proper monitor from a list so all display resolutions are shown and I can select a lower one for him.

View 8 Replies View Related

Red Hat / Fedora :: Forcing Screen Resolution When Monitor Type Not Detected

Jan 18, 2010

OS: Fedora 12
Video card: ATI Radeon 9200 series
Monitor: ViewSonic 19"

I installed Fedora 12 configured Gnome automatically. Generally default settings. My monitor was connected directly to the video card and all was good. My video card was detected and my monitor was detected as ViewSonic Corporation 19" and I can set the screen resolution to 1280x1024. I had no xorg.conf file, as it seems that Fedora 12 does a great job of PnP to just set everything up.Now I go and complicate things by hooking up my monitor through a KVM switch. All of a sudden my monitor is "Unknown" and the best resolution I can achieve is 800x600.

Sure, I could go and reconnect without the KVM, but I want to be able use it.Is it possible to edit xorg.conf to tell it "Trust me, just use 1280x1024 at 60Hz even though you can't figure out what the monitor is"?

I tried a number of the posted suggestions to generate xorg.conf files but none of them get me what I need. A simple sample file listing that does the minimum is greatly appreciated (I can experiment from there once I get a basic setup working).And can someone explain if it is X or the ATI driver that is getting confused by the unknown monitor type. It helps to know what is actually going on in addition to a fix (so I can figure it out myself in the future). Thanks!

View 3 Replies View Related

Slackware :: Slackware 13.37 Doesn't Determine Monitor Size Correctly

Jun 12, 2011

I have a display problem since updating to Slackware 13.37. Everything was fine on Slackware 13.1, but when I switched to 13.37 some piece of software came up with the wrong monitor size. I have a 1600x900 LCD monitor but the X screen came up as 1024x768 with blackness on either side of it. Under Slackware 13.1 the X screen came up as 1600x900 as it should without any prompting from me; I didn't even have an Xorg.conf file. I tried using the Xorg.conf file which was needed and work for older Slackwares, eg 12.*, but it didn't work. (Saying it didn't work is a gross understatement! That old Xorg.conf completely screwed up mouse, keyboard, and monitor; the screen was flashing and nothing worked. The only way to get control back was to SSH into the machine from my laptop and reboot. Killing the X server via that SSH console did NOT the flashing or get me back to my console login; only reboot worked.)

I find I can get the screen to be the right size manually by going through KDE's "System Settings" --> "Display and Monitor" --> "Size & Orientation", then disabling "LVDS1" and setting VGA1 to 1600x900. The size of my odd-sized monitor is being correctly detected for the "Auto" choice. Upon reboot LVDS1 stays disabled but VGA1 reverts to 1024x768 so I have to do this each time.I've done some search of the on-line literature regarding the error messages I am seeing in the boot log.

People are suggesting changing all kinds of things to alleviate the side effects of the "conflicting" error message above, even modifying GRUB parameters (which won't work for me since I use LILO).So, I have a manual work around which I must do each time I log in. Does someone know how I can get X or KDE to force 1600x900 upon start (while Linux/X/whoever find and fix the problem) or does someone know of a real fix?

View 6 Replies View Related

General :: How To Stop Fan Programmatically

May 27, 2011

My system doesn't reacts at writing values below 255 to /sys/class/hwmon/hwmon0/device/pwm(2,3) which correspond to 3-wire case fans connected via M/B (ga-890gpa-ud3h) headers. The idea was taken from [url]

ls /sys/class/hwmon/hwmon0/device/

It indeed shows the actual speed:

But refuses to write to fanX_input: permission denied (even for root).

More specs: kernel 2.6.38.4, sensors output is:

I do not run any daemons for fan control, but suppose the speed may be set by CPU in-kernel governor. How to stop a fan under this conditions without doing hardware tricks?

Upd: part of pwmconfig's output:

Devices:

Found the following PWM controls:

hwmon0/device/pwm2 is currently setup for automatic speed control. In general, automatic mode is preferred over manual mode, as it is more efficient and it reacts faster. Are you sure that you want to setup this output for manual control? (n) y hwmon0/device/pwm3 hwmon0/device/pwm3 is currently setup for automatic speed control.

In general, automatic mode is preferred over manual mode, as it is more efficient and it reacts faster. Are you sure that you want to setup this output for manual control? (n) y

Test:

Warning! This program will stop your fans, one at a time, for approximately 5 seconds each! This may cause your processor temperature to rise! If you do not want to do this hit control-C now!

Hit return to continue:

Would you like to generate a detailed correlation (y)? y

This was stopping CPU fan. And:

View 2 Replies View Related

General :: Programmatically Detecting A USB Device?

Dec 14, 2010

I have a USB modem and a large C++ application that needs to detect whether that device is present or not. I was hoping to get advice for what the best method to do so would be. The only solution I've thought of is to parse the output of lsusb and look for the vendor and product ID of my device, but that seems a little hack-ish and inefficient. Is there a command or program that I can provide it a vendor/product ID for a USB device and it can tell me whether or not such a device is present in the system? Or another, better way to detect the device than parsing the lsusb output that I've been thinking

View 2 Replies View Related

Ubuntu :: Programmatically Finding Out The Application Font

Jan 10, 2011

I am writing an Air application and I would like to have the app use the font indicated in Appearance Preferences.

A similar problem to this one :

[URL]

I do not have Gtk::Settings and I have looked in ~/.gconf/desktop/gnome/ but I do not have an interface folder and none of the others I opened have any font details.

I have tried simply not setting a font within my application but it is using a font not specified in the Appearance Preferences at all. It looks like Times.

Ideally I would like to be able to get this information from Ubuntu using a native process :

[URL]

get the font name of the Application font or would I have to write a script and call that from inside Air?

I have a default installation of Ubuntu 10.4 with Unity running on top of Gnome. (I think this is correct. I certainly can get Nautilus running quite easily and as I mentioned earlier I have ~/.gconf/desktop/gnome/ folders).

The brief is to get the application working on the default installation so I cannot install anything but the target machine I am using has got 'gconftool'.

View 2 Replies View Related

Ubuntu :: Generate Pdf Documents Programmatically Using Ruby

Apr 1, 2011

I need to generate pdf documents programmatically using Ruby. i.e. I don't want a GUI interface but an API interface. The bulk of my document is text but there are images included as well. I've looked at this thread: [URL] and it's 2 main recommendations PDFEdit and ImageMagik. PDFEdit has scripting available but I can't get my head round how to call this using Ruby. ImageMagik has a number of Ruby wrappers and is the kind of thing I want but as far as I can tell it only deals with Images and my stuff is mainly text.

View 1 Replies View Related

Programming :: Programmatically Getting Standard File Dialog

Jul 14, 2010

Is it possible to do the following in C/C++ in Linux:Without direct linking (my program should NOT depend on Qt or GTK), display a GTK or Qt based file dialog.The behaviour should be something like this when my program runs, when you want to open a file:The program scans whether you have Qt installed. If so, it somehow manages to link itself to Qt (e.g. dynamically loading the .so file) and display its file dialog and get the path from it. If Qt wasn't found, it tries the same with GTK. If that also wasn't found, it displays a less powerful replacement dialog instead (better than nothing).

Or is there any other simple way in Linux to get a standard file dialog somehow (similar to when compiling for Windows you can very easily get its standard file dialog, no matter what version of Windows, in your code, even if your program doesn't use any other Windows GUI at all).

View 4 Replies View Related

General :: Programmatically Connect To A Box Running Ssh From A Windows Pc?

May 11, 2010

I am writing an application that has a web service client on a Windows PC that needs to call a web service on a Linux server. In order to create the client, I need to be able to programmatically read the WSDL on the server and use it to create the client. I'm using the web tools in MyEclipse to build the client.

The Linux server is running Red Hat, I believe, with ssh enabled. I can connect from Linux to Windows with no problem, but I can't reach the Linux box from Windows. I get one of three errors when I try: no path to host, connection reset, or unknown error number, depending on the port I use. I've googled for an answer, but haven't found anything yet.Is there some way to add the Windows IP to a permission file on the Linux machine so it will be recognized when it queries for the WSDL?

View 9 Replies View Related

Networking :: Programmatically Check Process Down / Up Stream

Aug 31, 2010

I wonder if there's a way to capture the same information I can get from nethogs to a file. All I need it per process (rather than per interface) what is the sent/received traffic.

View 1 Replies View Related

General :: Create A Png Or Jpeg File Programmatically?

Oct 3, 2010

Given a matrix with 0,1 entries, how can I create a graphic in linux such that we have a black square or pixel if the entry is one and white otherwise?

For example, if the matrix is:

0001000
0011100
0111110
0000000

then I want a graphic that looks like:

[code]....

I will be working with many large matrices, e.g. 1000x1000, or 5000x1000 so I need to do this automatically.

View 6 Replies View Related

Programming :: Programmatically Set File Associations In Gnome/KDE?

Jun 3, 2010

I would like to associate my program with several file extensions programatically.

Everything I've been finding online is how a user would set a file association, does anyone know how to do this progormatically (bash, C++, etc)?

I would mostly like to get this to work with Gnome, but KDE would be nice as well.

View 3 Replies View Related

Programming :: Get Default Browser Name And Mail Client Name By Programmatically?

May 4, 2009

I am developing a application in which i have to show the name of default browser and mail client. i want to run this application on RedHat, SuSE, Mandriva, and Ubuntu. I have checked similar threads but not found any useful information.

View 8 Replies View Related

Ubuntu :: Changing File System Type To Another Filesystem Type - Does It Effect On Data?

Feb 4, 2011

In my system around 73gb(pc-desktop) i have,1 primary partition(windows)-25gb, 1-extended partition(remaining gb) 3 logical partitions were there in (under) extended partition in one of the logical partition is d:drive. in my hard disk d: drive is -/dev/sda5

previosly i was fat -file system , (d:drive-/dev/sda5), i remember i changed the d: drive(d:drive-/dev/sda5) file system to ext4file system ,with following command using terminal

After doing(changing the file system)this one ,i couldnt see the d:drive data

By doing that

1q) Did i reformatted the partition? i think the new filesystem(ext4) has no knowledge of the data that was on it when it had a FAT filesystem.

2q) How to do undo operation,i tried to change the filesystem type to fat/ntfs in terminal using command --sudo mkfs -t FAT /dev/sda5.

Result:its showing text message-'mkfs.FAT: No such file or directory'(not in single quote)

I had very imp data in d:drive

View 1 Replies View Related

Ubuntu :: Error: Can't Perform Indexing Operations For <unknown Type> Type

Feb 26, 2010

I just loaded octave. I ran through a few examples of how to implement a script file. Everything works until I get to "plot". When I run the "plot" command I get the following.

octave:2> test1.m
error: can't perform indexing operations for <unknown type> type
sh: gnuplot: not found
Just to double check my work, I ran the following code:
y=[1 2 3];
plot(y);

View 3 Replies View Related

General :: Getting Content-type/Mime Type Of The File Using Shellscript

May 24, 2011

I am copying the file form one directory to another directory using shellscript.

Here i want to get the Mimetype/Content-type of the file.

How to i can get the MimeType.

View 9 Replies View Related

Security :: Server Hacked When Try To Log In Type Root But Won't Let Type A Password?

Jun 22, 2010

I have a server hacked when i try to log in i type root but won't let me type a passwdthere are no services up, can't see page mail nothing

View 11 Replies View Related







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