Debian :: Reading From USB Keyboard Device?

May 1, 2010

I am running Debian off a CF on a SBC board (TS-7200). I am connecting via serial ttyAM0. It has a 2.4.26 Kernel running a Sarge distro of Debian.

I am using a terminal in windows to work on the device via serial. (Tera Term)

I am trying to read the input from a keyboard usb device. However, I want to eventually be able to read from any HID device. I currently have a Dell keyboard plugged into usb. lsusb gives:

Bus 001 Device 001: ID 0000:0000
Bus 001 Device 002: ID 413c:1003 Dell Computer Corp.
Bus 001 Device 003: ID 413c:2010 Dell Computer Corp.

[Code]....

View 1 Replies


ADVERTISEMENT

Fedora :: Libusb-1.0 Time-out When Reading From HID Device?

Jun 25, 2009

I'm having a weird problem with libusb-1.0. I have a fresh install of Fedora 11. I'm trying to control a USB HID device (own development) and I want to offer Linux support via libusb. Writing to the device is not a problem and works without any problem. The problems starts when I want to read from the device. Under Windows everything works without a problem.

Via lsusb -v I get this information:
Bus 003 Device 013: ID 16c0:0552
Device Descriptor:
bLength 18
bDescriptorType 1

[Code]...

View 1 Replies View Related

General :: Crypsetup (Unix) Is Not Reading The Device?

Jan 25, 2011

I have a Unix based question. Intro:Trying to create local image which is coded by the cryptsetup tool. Here are my steps:

abcdef# dd if=/dev/zero of=image.img bs=512M count=1 1+0 records in 1+0 records out 536870912 bytes (537 MB) copied,6.39732 s, 83.9 MB/s abcdef# cryptsetup luksFormat image.imgWARNING! ======== This will overwrite data on image.img irrevocably. Are you sure? (Type uppercase yes): YES Cannot read device image.img.

Q:How can I make it work correctly(creating local image with crypting support) or how can I (if its possible of course) to swindle my os?

View 1 Replies View Related

Programming :: Keyboard Confirmation While Reading From File In Shell Script

Feb 3, 2010

I'm writing a script and I'm stuck. I need to read from keyboard to ask for confirmation while Im reading from a file. My code is this:

while read linea
do #code
echo "you sure? (y/n)"
read answer
#code
done < $"agenda.dat"

The problem is that stdinput has been redirected to file agenda.dat so when I do "read answer" it reads the next line from the file.

View 11 Replies View Related

General :: Reading The Manufacturer Data / Device ID On A USB Drive?

Jun 28, 2011

I wish to read the Manufacturer data and other details such as Device ID, Serial number on a USB drive.

1. Could anyone help me out with information on the memory structure of a USB drive? (which location is the mnfr data stored?)

2. Are there are any commands in Linux that will help in reading/accessing this data?

View 3 Replies View Related

Programming :: Differences Between Ncurses Library And Termios Struct W.r.t Keyboard Reading

May 3, 2010

I want to read a pressed key or a combination of pressed keys from the keyboard and perform some action afterwords.

e.g.

Ctrl-Alt-F1

Out of ncurses lib. and the termios struct which can be used best for the above purpose and why ?I tried to search on Google, the differences between these two but couldn't get much !

View 6 Replies View Related

General :: Get Device File Name Of Usb Keyboard?

Apr 27, 2010

Now I connect usb keyboard to my machine, and I would like to know how I can get device file name of this usb keyboard. I know it is /dev/input/event# file,but which event# file? I tried to do [dmesg | grep usb] , but kernel message don't tell me what I would like to know.

View 1 Replies View Related

General :: Why Is Reading A FILE Faster Than Reading A VARIABLE?

May 4, 2011

I don't understand the results of a simple performance test I ran using two basic scripts (running on a high end server):

perfVar.zsh :

#!/bin/zsh -f
MYVAR=`cat $1`
for i in {1..10}

[code]...

Performance test result:

> time ./perfVar.zsh BigTextFile > /dev/null
./perfVar.zsh FE > /dev/null 6.86s user 0.32s system 100% cpu 7.177 total
> time ./perfCat.zsh BigTextFile > /dev/null
./perfCat.zsh FE > /dev/null 0.01s user 0.10s system 91% cpu 0.118 total

I would have thought that accessing a VARIABLE was way faster than reading a FILE on the file system... Why this result ?Is there a way to optimize the perfCat.zsh script by reducing the number of accesses to the file system ?

View 3 Replies View Related

Fedora :: Resume From Keyboard \ Figure Out Which Is For Which Device?

Jun 17, 2011

Currently I only only resume from suspension by pressing the power button. I learned that by editing /proc/acpi/wakeup one can enable resuming from other devices. But how to figure out which is for which device? Here is my /proc/acpi/wakeup file:

Code:
DeviceS-state Status Sysfs node
PCE2 S4*disabled pci:0000:00:02.0

[code]....

View 1 Replies View Related

Ubuntu Networking :: Broadcom On 2.6.34 - Reinstall Error Code: Reading Package Lists ... Done Building Dependency Tree Reading State Information

May 20, 2010

i installed kernel 2.6.34 to fix my lid closing issue, and that went great. but now when i go to reinstall my broadcom i get this error. Code: Reading package lists... Done Building dependency tree Reading state information... Done bcmwl-kernel-source is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 1 not fully installed or removed. After this operation, 0B of additional disk space will be used. Setting up bcmwl-kernel-source (5.60.48.36+bdcom-0ubuntu3) ... Removing old bcmwl-5.60.48.36+bdcom DKMS files...

[Code].....

View 9 Replies View Related

General :: Instruct The Kernel To Use A USB Keyboard And FB Device As It's Boot Console?

Jul 8, 2010

I'm guessing the answer to my question is in manipulating the kernel command line. But with what arguments? (and does the kernel have it's own fonts to be used on a FB device?)

The host is a ARM9 based embedded system with a 1-bit LCD screen.

This is a prelude question to: Naming a Frame buffer Device

View 1 Replies View Related

Debian :: TAR - File Has Changed While Reading

Dec 17, 2010

I am using a backup system with cron + tar. Since the server is very busy, I get often the cron-email: "The file XYZ has changed while reading". This message is a bit annoying and I see it as critical point in my backup system. I believe that this file is then not in my backup. (Is that correct?) Let's imagine the hard disk dies and I have to recover the system and my personal data, and in the night the mysql-table XYZ was not in the backup, because it was in read-usage. I would then have lost this table forever. Is there any way to tell TAR, that it should force the file to be included (if in read-usage, then wait 2 seconds and try again)?

View 9 Replies View Related

Ubuntu Multimedia :: Use Plug'n'play Mouse / Keyboard Remote As Lirc Device?

Mar 16, 2010

I've bought this remote control that sais it works in Vista, XP etc. without any driver. Basically it has a bunch of buttons that replace the mouse and a bunch of others that replace basic keyboard functions (arrows, enter, escape). It has a USB IR receiver so I thought I could simply use it as a lirc remote in Ubuntu.

However, it sais absolutely nothing on it except for "PCremote" so during lirc installation I have no idea what to choose. And, interestingly, I accidentally discovered that it works in Ubuntu, too, out of the box. Controlling the mouse and acting like a keyboard. Is there a way I can forfeit current functionality and just get it to work as a customizable lirc remote? Or even better, keep current functionality but change it only for certain apps (xbmc, vlc etc)?

View 6 Replies View Related

Debian :: Reading An External NTFS USB Drive?

Feb 1, 2010

I've installed libfuse2 and ntfs-3g. Now when I reboot, the drive shows up in fdisk. In Gnome File system, the folder shows up in /media as /media/Storage. I didn't issue the mount command, it went there automatically. In terminal, I can access Storage and read/write to files on it. BUT, if I double-click the folder in Gnome, I get a brief glimpse of all the folders in Storage, then they disappear and the drive unmounts. The desktop icon goes away, and I can't see it when I issue sudo fdisk -l. I can get it back with a reboot. I've tried an entry in /etc/fstab, but that makes no difference. I didn't find anything specific to address this on this forum or after Googling.

View 4 Replies View Related

Debian Multimedia :: KDE Reading Too Much From Network Drive

May 2, 2015

I have a server set up with Samba. On the desktop side I use KDE. I can clearly track intensive smbd activity, being the first on the iotop results page. Another thing is that after reading from the server's HDD, it seems to write on the desktop's SSD. It does this intermittently.I really want to know how can I stop this. It's very annoying and I bet I don't need it since, using previous versions of Debian, I could go well without this activity.

View 2 Replies View Related

Debian Hardware :: The Drive Isn't Reading Discs?

Jan 28, 2010

The drive isn't reading discs. Dmesg says PIO255(auto-tune) requested, PIO4 selected, UDMA33MHz.

An inexpensive drive with many failures noted on Google.

What command would I enter in grub following "ro quiet" to change the mode?

View 5 Replies View Related

Software :: Debian Squeeze Wrong RAM Reading?

Jul 10, 2011

I'm running Debian 6 (squeeze) amd64 version and as I look on the total memory size, it only reads 3224184k but my machine actually has 4GB of RAM installed. What could be the issue?

View 6 Replies View Related

Debian Installation :: Lenny Install Not Reading Media

May 5, 2010

I've installed Lenny a few times before, but something is going wrong here this time. I couldn't remember the exact method I used to put an image on a disc, but I tried over 10 ways, and every time, after starting up, it says something along the lines of please select different boot device or insert bootable disc and press a key. There's a bunch of options to make these images in Windows apps, but I did one solid way that should have worked i believe.

This was to zcat boot.img.gz > /dev/sdx and so on, then copy the mini.iso to the usb drive (instead of previously making cds). I thought maybe my cd drive wasnt working, but the usb drive, when selected as primary boot drive had same issue. I didnt see any errors in its creation on the usb drive either. Running AMD64, have three hard drives plugged in, thought maybe the newest drive had an issue, so I tried different combinations of unplugging power and data cords of each and once all hrd drives. Using this computer right now, actually, XP is running. A command prompt version of squeeze is installed, its having some difficulties, thats why i would like a new install.

View 3 Replies View Related

Debian :: Can't Scroll Up/down In Debian Installer (even After Changed Keyboard Layout)

Dec 1, 2010

when I finally wanted to install Debian to my hardrive. Somehow, how to copy it to USB drive and make it boot-able. Installation process started without problems, but it failed on step called (something like) "Find files in CD-ROM" - what was expectable, since I used USB drive. So I wanted to unmount "/cdrom" and mount my USB drive there instead. I moved to another terminal, and searched for right device. "ls /dev" does not help, since I can't scroll to see other devices. Also kernel messages - can't scroll. Tried to change keyboard layout, still didn't work. I also can't use less, because there is no apt-get installed. Another problem is, that after trying to mount only viewable device (/dev/sda1), mount failed bacause I gave there invalid argument, or directory didn't exist. (Note that I created directory in /mnt/... or /media/... first). So I am asking - how can I remap keyboard to use those page up/down keys?

View 12 Replies View Related

Debian Configuration :: Error Starting Domain: Internal Error Process Exited While Reading Console Log Output

Sep 9, 2010

I have mounted an NFS share with ISO images on my kvm Server. If i connect such a iso to a VM (using virt-manager) for installing a operating system i get the following error on startup: Error starting domain: internal error Process exited while reading console log output: char device redirected to /dev/pts/1 qemu: could not open disk image /mnt/iso/public/Linux/Distributions/Debian/debian-504-amd64-netinst.iso: Permission denied

The problem is definitly that kvm (or qemu or libvirt-bin, i don't know) tries to set permissions (rwx owner for libvirt-qemu, --- for kvm group, --- for other) on the file, although it has read permissions. Is it possible to change this behavior?

View 1 Replies View Related

Debian :: Keep Loosing Keyboard / Fix It?

Aug 26, 2010

It seems to happen when I use memory-intensive applications. Sometimes it happens if I'm browsing and I have several Iceweasel windows opened on pages displaying multimedia content. Now I am working on a big Open Office drawing (large file, lots of stuff on the page) and it has happened twice. No warnings, no error messages, the keyboard just suddenly becomes completely unresponsive. I reboot and it functions again. Until next time.

I've got an up-to-date stable Lenny on a Dell Vostro 1520 and no other OS. I've got some extra stuff from non-free repositories but AFAIK these deal with multimedia applications, not keyboard control.

View 14 Replies View Related

Debian :: Bluetooth Keyboard Reconnect

Jun 1, 2015

On my Raspberry (I know but I could not get any response in raspberry-forums) running raspian I have a problem with a bluetooth-keyboard.

It has bluez 4.99-2 installed and I was able to pair the keyboard and make it trusted and when I run "bluez-test-input connect <address>" I can use it as an input device, but the problem is that when the keyboard goes into a standby-mode after some inactivity the connection is lost and not reestablished. To make it work again I have to run the bluez-test-input command again.

Now when I use the keyboard on my Android-device it also goes into standby but as soon as I start to type again it automatically reestablishes the connection - this is what I would like to achieve on the Rasperry.

My fundamental problem is that I don't know anything about bluetooth really...

I assume that on Android the keyboard initiates a connection when it comes back from sleep but on Raspbian the connection is initiated from the Pi and when the connection is lost the keyboard may try to reconnect but maybe there is no "bluetooth-server" on the Pi to accept the connection but that is just guesswork from someone that really has no clue...

View 0 Replies View Related

Debian :: Losing Keyboard In Vbox

Dec 21, 2015

I keep losing my keyboard in Virtualbox. I "fix" it be reverting back to the host and then switching to the VM and it will be back. Googling brought up others having similar issues with Ubuntu, but no solution that I saw.My host is Jessie and client is Wheezy, both with Xfce. The mouse works just fine.

View 4 Replies View Related

Debian :: Console Keyboard Is Us And Can't Be Changed?

Feb 4, 2010

after an upgrade i got an american keyboard-layout in the login-terminal. i ran dpkg-reconfigure console-data: its said keyboard layout would be german. i ran dpkg-reconfigure keyboard-layout: same thing. i checked the bugs for console-data and keyboard-layout: [URL] and the best i could find is this (console unusable after upgrade): [URL] but it doesnt seem to be exactly the same problem. its since about a week.main problem is the password, else its a little annoyance, not more.

View 4 Replies View Related

Debian :: USB Keyboard Getting Disconnected Randomly

May 4, 2010

My laptop has squeeze and custom 2.6.34-rc5 kernel. This kernel is there from April 20 onwards. Today I am seeing random connect/disconnect of my usb keyboard. In the last 2 hours it got disconnected at least around 10-12 times.

[ 3136.872084] usb 2-1: USB disconnect, address 51
[ 3137.184066] hub 1-0:1.0: unable to enumerate USB device on port 1
[ 3137.712085] usb 2-1: new low speed USB device using uhci_hcd and address 52
[ 3137.888161] usb 2-1: New USB device found, idVendor=0603, idProduct=00f2
[ 3137.888172] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3137.888181] usb 2-1: Product: USB Keyboard
[ 3137.888188] usb 2-1: Manufacturer: NOVATEK
[ 3137.907637] input: NOVATEK USB Keyboard as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0/input/input87
[ 3137.908369] generic-usb 0003:0603:00F2.0050: input,hidraw0: USB HID v1.10 Keyboard [NOVATEK USB Keyboard] on usb-0000:00:1d.0-1/input0
[ 3137.945505] input: NOVATEK USB Keyboard as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.1/input/input88
[ 3137.946956] generic-usb 0003:0603:00F2.0051: input,hiddev0,hidraw1: USB HID v1.10 Device [NOVATEK USB Keyboard] on usb-0000:00:1d.0-1/input1

View 2 Replies View Related

Debian :: Unable To Use Either Keyboard Or Mouse?

Aug 29, 2011

For some reason I am unable to use either my keyboard or my mouse. No problem in etch up until now, even after rebooting.

View 1 Replies View Related

Debian :: Keyboard Shortcut Not Working

Oct 31, 2015

I'm a huge keyboard shortcut fan. I can't stand mice. So this is a big one for me.

My Alt+F10 (maximize) and Alt+F9 (minimize) keyboard shortcuts work just fine. I read everywhere (i.e., [URL]) that the Alt+F5 combo should unmaximize a maximized window. But it's not working. Can't find anything that says Debian excludes that combo.

Is this to be expected or is something amiss? I think its meant to be a default shortcut, so don't want to start playing around with customizations prematurely.

Searched through the forum, couldn't find anything under the following search terms: Alt F5; Alt+F5: Alt +F5: Alt-F5: maximize: unmaximize. Did I miss the magic string?

3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u5 (2015-10-09) i686 GNU/Linux

View 5 Replies View Related

Debian :: Debian 5 Mdadm "device Or Resource Busy" Raid?

Dec 26, 2010

I installed mdadm fine and all and proceeded to run:mdadm --create --verbose /dev/md0 --level=stripe --raid-devices=2 /dev/sda /dev/sdbWith sda being my primary hard drive, and sdb being the secondary.I get this error message upon running the command"mdadm: chunk size defaults to 64Kmdadm: Cannot open /dev/sda: Device or resource busymdadm: create aborted"I don't know what's wrong!

mdstat says:
"Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] [faulty]
unused devices: <none>"

View 1 Replies View Related

Debian :: Power Button On Keyboard Not Functioning

Jun 27, 2015

I recently upgraded to Jessie and am using the LXDE desktop. I like using the keyboard power button to shutdown the system but it does not work. I looked at /etc/acpi and everything appears okay to my untrained eyes, but there is obviously something not working correctly. Do I need to edit some config file or install some code in order to use the power button for shutdown ? When I look at Services Settings I see that acpid power management is selected.

View 10 Replies View Related

Debian :: Doesn't Recognize Yamaha Keyboard

Aug 22, 2015

I've been trying with this for a long time and I can't get it to work. Jack and aconnect doesn't see my keyboard. There is nothing in both of them. Yet, my computer does see it.

amidi -l
Dir Device Name
IO hw:2,0,0 Portable G MIDI 1

lsusb
Bus 008 Device 002: ID 0930:6545 Toshiba Corp. Kingston DataTraveler 102/2.0 / HEMA Flash Drive 2 GB / PNY Attache 4GB Stick
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 002: ID 046d:c313 Logitech, Inc. Internet 350 Keyboard

[Code] ....

View 1 Replies View Related







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