General :: Log Devices Plugged In - Event ID?
Aug 21, 2009
I know in windows xp there is a registry key and an entry in the Plug and Play log file as well as maybe an event id, that is produced when a device (say usb) is plugged in. My question is, besides /var/log/ (messages?) Is there any other location that that information is stored in?
View 3 Replies
ADVERTISEMENT
Jul 30, 2009
I was using V9 and upgrade to V10 and now my logins in my inittab do not work. I realize that is file structure is outdated so I made individual run files for each of my serial devices under event.d ( such as TX0000 - rc....etc) - all this works but i need to manual type initctl start TX000o to get logon for my serial devices. I would so much like them to automatically start on bootup.
View 3 Replies
View Related
Jan 3, 2010
I know pretty nothing about networking'n'stuff. I got this linksys wireless router that was somewhere in a box for a few years ... now I want to see whether I can bring it back to life. I know, that I put some different software on it and that it doesn't have it's original ip assigned any more. But I can't remember which ip that would be.
So for starters I just wanted to put the original software back on to see if that thing still works. But how to do that? First I got no clue how to determine the address it is listening to. Once that'd be figured out I guess I'd have to ssh to it and install this ____.bin file I downloaded somehow.
View 4 Replies
View Related
Jan 25, 2010
When I plug in a USB GPS device, using cypress_m8 module, is creates /dev/ttyUSB0 with read/write permissions for owner,root, and group, dialout. My question is really just where are the rules for setting these permissions and how exactly are the owner and group names set when /dev/ttyUSB0 is created, i.e. a serial USB device is plugged in.
View 3 Replies
View Related
May 26, 2009
I want the following behavior in kubuntu 9.04 when I plug a device (USB stick or CD disk):
1. It should be mounted automatically for me. Now it isn't, though it appears in fdisk -l output: Code: Disk /dev/sdd: 8006 MB, 8006926336 bytes
16 heads, 32 sectors/track, 30544 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Disk identifier: 0x9b12d290
Device Boot Start End Blocks Id System
/dev/sdd1 * 16 30544 7815232 b W95 FAT32 and if I mount it manually, all goes OK
2. If I mount manually my CD disk and then press the eject button on my drive nothing happens until I manually unmount the drive. But I want it to open immediately
All this worked for me in kubuntu 8.10, and broke with the upgrade.
My fstab entries Code: /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/sdc1 /media/usb vfat noexec,codepage=866,utf8,nosuid,nodev,quiet,uid=1000,gid=1000,umask=077,user 0 0
View 9 Replies
View Related
Mar 14, 2010
I have a Logitech Media Play mouse with many buttons. I'm using xbindkeys to create some shortcuts to programs e.g. firefox, gnome-terminal--these work wonderful. What I cannot figure out is how to get the buttons to work for the media player(Ubuntu>System>Keyboard Shortcuts>Sound). I set shortcuts using my win key and letters, hoping to use xbindkeys to send out a keystroke. I have tried to use xmacro but to no avail. xdotool was not helpful, I think it may be outdated(desktop/workspace functions did not work).
My preferred option would be to get mouse events to keystrokes working with xbindkeys and program x(x being whatever works); however, just getting my media buttons to interact with the media play is my ultimate goal.
View 1 Replies
View Related
Jun 7, 2010
Is it possible to catch the power management events(hibarnate/standby/sleep)o the code(c++)?
View 2 Replies
View Related
Jun 24, 2010
I'm working on an app that will authenticate user with a smartcard when the user inserts it in the card reader (this is on Red Hat 5.5). How do I detect a card has been inserted? Is there a daemon service I need to listen to and associated api to get notified etc? .
View 3 Replies
View Related
Mar 27, 2010
Is there a way to provide post-mount and pre-umount scripts in Linux?
I am trying to do some scripts on storage media when mounted and before umounting (eg, for syncing).
View 3 Replies
View Related
Jul 4, 2010
I'm trying to make sure that my laptop will suspend if I unplug it after the lid is already closed, and I believe that one way to accomplish this would be to simulate an ACPI lid event when the power adapter is plugged or unplugged. In order to do this, I need to find a command that will generate a fake ACPI lid event. Is there any such command?
View 1 Replies
View Related
Jul 17, 2011
I installed Ubuntu via USB drive onto my hard drive. If I boot the PC without the usb drive I used, Ubuntu will not load. After booting I can unplug without any consequences.
I looked on the hard drive and there is a boot folder. On the USB drive, this is the tree contents:
/media/disk$ tree
.
|-- adtext.cfg
|-- boot.cat
|-- f10.txt
|-- f1.txt
[Code].....
Am I correct in my assumption that the boot aspect is associated to the USB drive? If so, how do I get it to boot without the USB? I'm guessing copying into some location and modifying grub?
View 1 Replies
View Related
Apr 3, 2011
I was building LFS on a pendrive this morning when it crashed in the middle of making gcc. I rebooted without my pendrive and I never got into the desktop. Instead, I get a visually pleasing terminal telling me that it couldn't find and that the only way to reboot would be to press CTRL+D. I'm then given a command line and that's that.
Rebooting with the key inside works perfectly.
I reformatted my key and now there's nothing on it. I feel like somewhere somehow I added an entry to the boot process of my system and now I have to remove it. Never dealt with something like this before
Fstab:
/dev/disk/by-id/ata-WDC_WD2500AAJS-60Z0A0_WD-WCAV2M336077-part1 swap swap defaults 0 0
/dev/disk/by-id/ata-WDC_WD2500AAJS-60Z0A0_WD-WCAV2M336077-part2 ext4 acl,user_xattr 1 1
[Code]....
The LaCie entry at the bottom there is my pendrive.
View 1 Replies
View Related
May 2, 2011
I'm having issues copying files from a USB attached HDD (formatted by the NAS to EXT3) over to a NAS device. First some background info (maybe relevant or may not be): I upgraded the HDD in my NAS and now I'm unable to copy the files over from the old HDD while plugged into the NAS. Also tried copying over from windows 7 (64 & 32 bit) as well as an XP machine using EXT2FDS & IFS resulting in perpetual re-booting of all three machines.As a result of that I got a brainwave to try copying the files over from a bootable Linux DVD (Unbuntu 11.04) to the Nas over the network. I am in Unbuntu now but I am having problems copying to the NAS. It seems to work when I select individual files but when I select a older/folders/sub folders to copy over an "error while copying" dialog box appears appears. For example: in "Show More Details" here is the copied text from an error: "Error stating file '/media/f0745264-c91b-4528-9fe3-e3469cdb13cc/Public
View 4 Replies
View Related
Apr 14, 2010
tell me detection code of device when an external device is connected through USB port.
View 4 Replies
View Related
Apr 2, 2011
Is there a way to have linux connect to the network when the ethernet cable is plugged in? I'm using Gentoo Linux, and I haven't found the right setup for the conf/net that'll allow me to do that.
View 1 Replies
View Related
Jan 20, 2010
Powerdevil has been a pain for me for as long as I've use it, since KDE 4.3.1(Even Pre 4.3.1, up to 4.4)... It doesn't toggle when I unplug the AC adapter and doesn't toggle between power management modes, so in-turn shuts off immediately without any notification that power has ran out. When I ran 'acpi', AC Adapter indicates properly when I unplug it and plug it back in, so I would rule out an ACPI issue, no? Is this a bug in Powerdevil?
View 1 Replies
View Related
Jun 2, 2011
I have connected (sata cable I mean) the drive where I have got my Ubuntu installation to another pc with windows 7 64 bits (but I think that 32 and 64 doesn't make difference). Windows 7 doesn't boot. So I thought it may be some kind of issue with the hard drive itself (but the drive is healthy), anyway I have plugged one drive from one NAS (you know, NAS drives are linux partitioned and formatted).Same result: windows 7 doesn't boot.
Windows 7 boot sequence hangs and at the next boot prompts
"Repair windows installation"
"Boot windows normally"
(and obviously none of the options works)
Looks really like that Windows 7 doesn't boot if any linux partitioned and formatted drive is present.
View 12 Replies
View Related
Aug 24, 2010
Both the speakers and the headphones keep playing the sound with headphone plugged in.
View 1 Replies
View Related
Aug 2, 2011
I used my computer this morning, but when I returned this evening, I am unable to reach the internet. Also the light on the mobo where the ethernet cable is plugged in is steady yellow.
My limited experience would tell me it is a hardware failure, but it seems so strange with nothing happening during the day. How might I best diagnose the problem?
View 8 Replies
View Related
Dec 7, 2010
I'm working on a server and noticed that the to RAID5 setup is showing 4 Raid devices but only 3 Total devices. It's on a fully updated CentOS 5 system that only has three SATA drives, as it can not hold anymore. I've done some researching but am unable to remove the fourth device, which is listed as removed. The full output of `mdadm -D /dev/md2` can be see below. I've never run into this situation before.Anyone have any pointers on how I can reduced the Raid Devices from 4 to 3? I have tried
mdadm /dev/md2 -r failed
mdadm /dev/md2 -r detached
but neither work and since there is no block device listed I'm not quite sure how to get things back in sync so it's only seeing the three drives.
/dev/md2:
Version : 0.90
Creation Time : Tue May 25 11:07:04 2010
Raid Level : raid5
[code]....
View 8 Replies
View Related
Feb 11, 2010
With /usr/bin/canberra-gtk-play set to --id='desktop-login' in the startup Applications dialog one expects a sound to play at login. This is not the case with fedora 12. I set the variable to --file=/home/me/sounds/myloginsound and I got sound.
I'm curious as to why the event id failed. I suspect that id was not linked/associated with any sound before fedora 12 was released. How does one troubleshoot sound event ids and their associated sounds in f12.
I'd like to get audio when I log out as well. I recall seeing a dialog box with events and associated sounds in f11 (or was it f10?) .... I don't see it in f12
1. Does anyone know which package adds that functionality?
2. In the absence of a GUI approach, how can this be achieved (with the terminal)?
View 2 Replies
View Related
Feb 3, 2010
I have a program running on my server which I want to restart in the event that it ever crashes. Someone suggested "Watchdog" to me, but it appears to me that watchdog restarts the whole system, not the program. I couldn't find much documentation for it. Another suggestion I was given was crontab, except that I don't want to relaunch the program every 60 seconds, as it doesn't run on screen or anything, it forks itself into the background after launching it. Perhaps a bash script that would check to see if the program were running or not, and if it weren't, relaunch it? Not sure how to do that, I've never written bash. In any case, I just want to keep this program running full time.
View 6 Replies
View Related
May 3, 2010
Ever since 9.04 or thereabouts, I have noticed that it's impossible to change individual system event sounds in System -> Preferences -> Sounds. It only gives me a few lame choices of "themes". While it used to be possible to define my own sounds for startup, shutdown, new e-mail, etc, I can't find ANY dialog to facilitate this in newer versions of Ubuntu.
A question: HOW do I do this without having to hack apart my stock system sounds? There should be a way, but google and forum searching turns up nothing.
A comment: Ubuntu continuing to "nerf" their dialogs like this is infuriating, especially when the underlying system works so well. I actually don't know if Ubuntu or Gnome is responsible, but either way taking away rock-bottom basic functionality like this only hurts the OS and Linux's cause.
View 9 Replies
View Related
Jan 19, 2011
I was turning off my pc and my brother pulled out his sd card while the pc was shutting down. Now when I try to boot up I can't boot into my ubuntu partook it just hangs and then comes up with inittramfs. I can boot into my windows partition just fine. I also tried rebooting with the sd card in the slot but same thing. I managed to load up a live disc but have no idea what to do next if I want to save my old partition (if it can be saved) otherwise as a last resort ill have to overwrite the partition.
View 3 Replies
View Related
Oct 26, 2010
I am on debian lenny and I am trying to make a script that will run in the background and checks the ethernet connection. If the ethernet connection goes down it will connect to wlan. I have found 2 ways of checking ethernet connection, via proc/net/dev and via ifconfig eth0. But if possible I want to avoid polling. So is there any event that is triggered when the table gets disconnect or at least the connection goes down and up?
View 1 Replies
View Related
Nov 30, 2010
I'm using mq_notify to be notified about events on a message queue. But my registered notifier function is not being called. I'm pasting my code snippet below:
[Code]....
View 4 Replies
View Related
Apr 16, 2010
In window , I can catch all of systems event by window API, but in Linux,I don't know how to do it.
View 2 Replies
View Related
Aug 6, 2010
My OS is F12 with Gnome desktop, after many alternatives I installed ns-allinone-2.34 so ns-2.34 run very well:
[dreams@localhost ~]$ ns
% exit
When I try nam, I got this error:
[dreams@localhost ~]$ nam
nam:
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units }"
invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D)}] units }
bind Li..."
I m not familiar with Linux so I don't understand what it means. I want to tell you that I can run nam when I access to the folder with this command ./nam and I can see the samples so I run simulation. I visit some pages when they speak about gcc and their compatibilities with F12. When I use Makefile I got access dined.
View 5 Replies
View Related
Jul 13, 2010
I am trying to write an app that will perform some actions when a network interface is unplugged. Is there a way to get the OS to signal me when a network interface is unplugged. I have looked at DBus but can't figure it out.
View 1 Replies
View Related
Jun 7, 2011
I have a Razer headset plugged in. Everytime I restart the computer I have to unplug/plug the headset to make it work. It even shows up the system:
lsusb
Bus 002 Device 002: ID 1532:001b Razer USA, Ltd
It does not show up as a valid sound device in system -> preferences -> sound.how I can make the headset "active" without replugging it to the computer?
uname -a
Linux unix 2.6.35-28-generic-pae #50-Ubuntu SMP Fri Mar 18 20:43:15
UTC 2011 i686 GNU/Linux
View 1 Replies
View Related