MIDI and Linux (interface w. keyboard, transcription)
location: linuxquestions.com - date: August 12, 2004
I have a client who is currently an Apple user but wants to make the jump to Linux. He needs to purchase a new computer soon with the intent of:
1. Capturing MIDI input from what he plays on a keyboard
2. Graphically modifying and cleaning up what was captured
3. Printing in full musical notation the final file so he doesn't have to transcribe it by hand
How feasable is this in Linux? I need to be able to set up a system that he can operate as a fairly sophisticated average user when I'm not there.
Could somebody point me in the right direction? I've done a few searches, but since I don't even know how to phrase what I'm looking for, so I haven't found anything.
Is there a crossplatform python lowlevel API to capture or generate keyboard events?
- date: March 24, 2009
I am trying to write a cross-platform python program that would run in the background, monitor all keyboard events and when it sees some specific shortcuts, it generates one or more keyboard events of its own. For example, this could be handy to have [email protected]
mapped to "[email protected]
", so that every time some program asks me for my email address I just need to type [email protected]
I know such programs already exist, and I am reinventing the wheel... but my goal is just to learn more about low-level keyboard APIs. Moreover, the answer to this question might be useful to other programmers, for example if they want to startup an SSH connection which requires a password, without using pexpect.
Thanks for your help.
Note: there is a similar question but it is limited to the Windows platform, and does not require python. I am looking for a cross-platform python api. There are also other questions related to keyboard events, but apparently they are not interested in system-wide keyboard event
Embedded Linux: Hardware access [closed]
location: linuxexchange.com - date: June 9, 2013
I have a Raspberry Pi, to access the GPIO pins or hardware peripherals (eg. I2C, SPI), you need to be running the program that accesses these as root. Or you can add the user running that program to the group for that peripheral (eg. the group i2c for I2C).
My question: In the real world (eg, some piece of machinery running embedded linux) is it standard practice to simply add a user to every user group for each peripheral that the program needs? Is there a better way of doing this?
My second question: How does this work when, for example, your using C to directly access hardware registers rather than via /sys. The only ways I can think of doing this is to run as root all the time which is not a good idea at all OR write a kernel module that deals with accessing the registers, while the user space program communicates with that module (which all seems like a lot of work if there are more "recommended" ways). How do programs normally access hardware registers on an embedded Linux setu
Linux: direct access to the harddisk in C
location: linuxexchange.com - date: December 14, 2012
How can I obtain a raw access to the HD and know if that location is used or is a free space?
Just a piece of example, I can obtain a direct access simply with an open and a read on a disk device, the goal is knowing whether the, for example, 10.000 byte is used or not.
Linux: attach USB keyboard to augment serial console
location: linuxexchange.com - date: November 8, 2014
I'm using an embedded linux system who boot into a "fastboot" environment which is kind of a lite Debian distrib using busybox. The device have a touch screen and two usb port.
The configured boot script have these lines that might be related:
stty -F $CONSOLE ospeed 115200 > /dev/null 2>&1
It then check for a USB drive, mount it and launch a specific filename if available to act as a USB update mechanism.
My goal is to use this script launch a touchscreen calibration utility. Problem is, this utility (not mine) check for key input coming from the console from which it was launched and plugging a USB keyboard don't work. I would also like it to accept ctrl+c to quit the utility and keep processing the rest of the boot script after completion.
If I connect an extension board to some pin-out and use a computer with putty to connect to this serial interface and send the keys from there it work, but my goal is to get this worki
Open menus absorb ALL keyboard events?
location: linuxquestions.com - date: June 24, 2015
I'm hoping someone has a different experience, so perhaps I can figure out why this is the case:
If a menu is open (even the little completion thingy in the address bar of your browser) every single keyboard event gets taken by it. What this means is that even the window manager doesn't get key events while a menu is open, so your WM hotkeys fail.
I've checked with the few systems I have around here, and I'm wondering if others have the same behavior? I don't think it's GTK, because I have twm running on X with no GTK and it's still doing it. I encountered this first a few years ago when building a right-click context menu app, and since then I've been checking various OSes and setups for the same behavior. It seems universal to me. Even MSWindows seems to do it.
What this means is that you cannot take a screenshot of an open menu without some fancy hacking. I'm not the kind of guy to shrug and say "Well, everyone does it, it must be correct." I think this is incorr
X Linux and Multimedia keyboard: Help
location: linuxquestions.com - date: September 26, 2005
I'm trying to get full functionality out of a newly purchased IBM RapidAccess III USB Type keyboard(Says model SK-8809 on the bottom and does not have the USB hub). This appears as A Silitek IBM USB Keyboard at module showtime, but looks identical to the Rapid Access III keyboard minus the hub.
With the help of a little programme called hotkeys, I have mapped out the multimedia buttons and can control xmms and the sound system volume/mute controls just fine. It's about the 9 slim colour keys along the top edge of the keyboard, and getting all of them to work in X. The first and last generate X events and are programmed to launch applications. Cool I say. But the remaining 7 keys do not generate keycodes when pressed. This is strange since in text mode (not an X shell like xterm or gnome-terminal) every key pressed generates a code, even all 9 colour keys. The codes are different between X and text too, for a given key.
I was pleased enough when I rebuild my kernel
Need to intercept HID Keyboard events (and then block them)
location: linuxexchange.com - date: October 5, 2011
I've got a RFID USB device that registers as a HID device (A USB Keyboard more or less).
I'm looking for a way to capture this input, and block/filter it before it hits the normal keyboard event handler (and outputs the 10 digit RFID code to the console).
I would of course have to exclusively capture just this device, and leave the real keyboard input alone (or pass it along).
My initial idea was to block the device in UDEV (So the usbhid/event/kbd kernel module didn't bind to it) and write my own basic driver for this device - but I don't know where to begin, or if that'll even work.
What would be great (and I'm not sure if such a thing can be done) - is if I write a event-filter module that can sit in-line with the event driver and capture (then filter) the appropriate input from the RFID unit, but let everything else pass through. I imagine such a module wouldn't require much code, and would be the most practical.
[EDIT: I should add that Xorg is NOT installed - console
Installing linux with external keyboard
location: linux.com - date: August 31, 2015
So my laptops keyboard is broken and right now im using an external keyboard and monitor for my laptop, if i was to attempt a dual boot with vista and linux via thumb drive, will the keyboard still register commands during installation? Im thinking that the keyboard needs to install itself onto the computer before itll work, which would mean the keyboard wont work until linux is installed and running. correct me if im wrong please.
Emacs, Linux and international keyboard layouts
location: linuxexchange.com - date: July 20, 2015
Is there an easy way to use Emacs key-bindings when you are using a not-English (Russian) keyboard layout?
Whenever an international layout is on, all keystrokes are interpreted literally, M-ф instead of M-a. As a result I can't use commands.
It would also be nice if Linux could interpret non-prefixed and shift-prefixed keys according according to an international layout, while keeping the rest English.
Page: 1 2 3 4 5 6 7 8 9 10