Go to advanced search

by cleverca22
Sun Apr 14, 2013 7:36 am
Forum: Python
Topic: Emulating key/mouse presses
Replies: 24
Views: 4320

Re: Emulating key/mouse presses

how do you run c code in python?, if i had an example i could make the above code work in it
by cleverca22
Sat Apr 13, 2013 6:37 am
Forum: Python
Topic: Emulating key/mouse presses
Replies: 24
Views: 4320

Re: Emulating key/mouse presses

http://www.raspberrypi.org/phpBB3/viewt ... 48#p219638

this code looks like it may also be of use
by cleverca22
Sat Apr 13, 2013 6:36 am
Forum: Python
Topic: Create Input button
Replies: 6
Views: 20338

Re: Create Input button

kainhero wrote:i cant seem to get this to work, everytime i try running it, itll give me the error saying it cant find module uinput, but lsmod shows its there
the error is likely talking about the python module uinput, not the kernel module uinput (which is used by the python module)
by cleverca22
Sat Apr 13, 2013 6:34 am
Forum: Troubleshooting
Topic: usb stick problem
Replies: 9
Views: 2002

Re: usb stick problem

just rmdir /media/usbstick if you did anything wrong, it will refuse to do bad stuff, and just give an error as for formatting, get a root shell (sudo -i) then type in mkfs. and hit tab twice you should get a list of options similar to this: mkfs mkfs.bfs mkfs.cramfs mkfs.ext2 mkfs.ext3 mkfs.ext4 mk...
by cleverca22
Sat Apr 13, 2013 6:30 am
Forum: General discussion
Topic: Innovations RFID Reader ID-20
Replies: 9
Views: 10046

Re: Innovations RFID Reader ID-20

that schematic will feed 5v data signals directly into the 3.3v only RXD pin! as for the interface type (ttl, wiegand, stripe emulation), you need to tie the FS pin to either gnd/vcc/beep to select a format(read the id-20 datasheet) i think FS in the above schematic is connected to GND, which matche...
by cleverca22
Sat Apr 13, 2013 6:17 am
Forum: Linux Kernel
Topic: Bare Linux kernel
Replies: 6
Views: 2361

Re: Bare Linux kernel

proc is also semi-optional, only real reason to mount is if if you need files from there (ps, top, free, vmstat, the list goes on)
sys is more important, if you wanted to use the gpio interface from that, everything else could be static on the fs with the entire program in a single static binary
by cleverca22
Sat Apr 13, 2013 6:14 am
Forum: Linux Kernel
Topic: Page flipping / Double buffering
Replies: 3
Views: 3874

Re: Page flipping / Double buffering

(i havent checked the posts linked above) from the testing ive done under android, the normal framebuffer calls to do page flipping appear to just work on the raspberrypi fork of android (dumbed down example with no error checking) ioctl(fd, FBIOGET_VSCREENINFO, &info); // get defaults from kernel (...
by cleverca22
Sat Apr 13, 2013 6:02 am
Forum: Beginners
Topic: GPU/CPU split for VNC
Replies: 2
Views: 2246

Re: GPU/CPU split for VNC

if i remember correctly, the normal vnc server is done entirely in userspace, and makes no use of ANY hardware (keyb/mouse/framebuffer), so it wont care what the gpu mem is but the framebuffer will default to whatever is native for the currently connected hdmi device, and that may suck some up unexp...
by cleverca22
Sat Apr 13, 2013 5:57 am
Forum: Networking and servers
Topic: high speed wifi module (non-USB) ?
Replies: 11
Views: 9811

Re: high speed wifi module (non-USB) ?

sounds like a decent job for oprofile!
by cleverca22
Sat Apr 13, 2013 4:32 am
Forum: Android
Topic: Project: Android JB 4.1 with Hardware acceleration
Replies: 126
Views: 99728

Re: Project: Android JB 4.1 with Hardware acceleration

after looking at things more, the razdroid 'fork' (it was only 2 commits long) was 'broken' from the very first commit and checking the original raspberrypi fork of linux, the framebuffer code never had the page flipping problem, ever (it was good from the very first commit) simply switching over to...
by cleverca22
Sat Apr 13, 2013 4:18 am
Forum: Advanced users
Topic: Wake from halt
Replies: 76
Views: 77670

Re: Wake from halt

http://www.raspberrypi.org/phpBB3/viewt ... 50#p119941

this shows pretty clearly, where all the power is going when in halt state

its the ethernet!
by cleverca22
Sat Apr 13, 2013 3:51 am
Forum: Networking and servers
Topic: Site-to-Site with 2 raspberry's (NATless)
Replies: 4
Views: 12293

Re: Site-to-Site with 2 raspberry's (NATless)

if you had full control of both LAN's and had a decent vpn client (which may need port forwarding), you can make a nat-free link between them basically, each lan needs its own subnet like 192.168.0.* and 192.168.1.* the .0.* lan needs to be setup to forward all traffic for .1.* towards its local pi ...
by cleverca22
Tue Apr 09, 2013 3:48 am
Forum: Python
Topic: Emulating key/mouse presses
Replies: 24
Views: 4320

Re: Emulating key/mouse presses

the c code may be usefull as a hint, to point out what functions to use in a python lib (if one exists), and it could also be used for making your own python lib, or a simple c program that takes orders from python Most importantly though, nobody ever wants to "press and hold a key, with no regard t...
by cleverca22
Tue Apr 09, 2013 3:44 am
Forum: General discussion
Topic: Windows 3.1/95
Replies: 49
Views: 8428

Re: Windows 3.1/95

I has Win95 on floppies (can't remember how many, but it was a lot). Not every computer had a CDROM back then! One of the floppies expired, but it was just a stock 3.5" disk formatted in DMF, so creating a new one wasn't the end of the world, even if the install procedure was... There was a chap ca...
by cleverca22
Sun Apr 07, 2013 8:37 pm
Forum: Python
Topic: Emulating key/mouse presses
Replies: 24
Views: 4320

Re: Emulating key/mouse presses

http://gallery.earthtools.ca/download/ventctl.tar i used this program many years ago to do something similar, it has 2 parts first part opens /dev/input/x, and sniffs the keyboard for a hotkey like shift (remove this code) the second part uses x11 api's to find the ventrilo window, and fake the A k...
by cleverca22
Sun Apr 07, 2013 8:23 pm
Forum: HATs and other add-ons
Topic: LIRC GPIO driver for homebrew adapter
Replies: 236
Views: 174563

Re: LIRC GPIO driver for homebrew adapter

the driver would need to be modified to support multiple transmitters
by cleverca22
Sun Apr 07, 2013 5:15 am
Forum: Troubleshooting
Topic: Strange onboard UART behavior (solved)
Replies: 11
Views: 2459

Re: Strange onboard UART behavior

That worked great. here is the batch file I am running now to change to 10Hz, 115kbps operation. thanks for the help! sudo killall gpsd stty speed 9600 </dev/ttyAMA0 { sleep 0.5;printf '$PMTK251,115200*1F\r\n'; }>/dev/ttyAMA0 stty speed 115200 </dev/ttyAMA0 { sleep 0.5;printf '$PMTK220,100*2F\r\n';...
by cleverca22
Sat Apr 06, 2013 4:23 am
Forum: Beginners
Topic: how to differentiate 2 rpi's on the network
Replies: 3
Views: 846

Re: how to differentiate 2 rpi's on the network

sounds like you need to change the hostname on one of them
by cleverca22
Fri Apr 05, 2013 11:42 pm
Forum: General discussion
Topic: Teamviewer on Pi???
Replies: 21
Views: 116627

Re: Teamviewer on Pi???

www.whatismyip.com as for forwarding ports, it helps to know that vnc has 2 modes, either end can act as a server if you run 'vncviewer -listen' at the client side, and forward port 5500 to it, the server can connect back, so the server ip/firewall dont matter i use that mode when the person i'm hel...
by cleverca22
Fri Apr 05, 2013 11:41 pm
Forum: Troubleshooting
Topic: Strange onboard UART behavior (solved)
Replies: 11
Views: 2459

Re: Strange onboard UART behavior

There's a known bug with the PL011 UART driver in the kernel where it will send a random "0" bit when activated. https://github.com/raspberrypi/linux/issues/148 You can apply the patch linked (by compiling the kernel yourself, see http://elinux.org/RPi_Kernel_Compilation) to correct the behaviour b...
by cleverca22
Fri Apr 05, 2013 10:16 pm
Forum: Troubleshooting
Topic: Strange onboard UART behavior (solved)
Replies: 11
Views: 2459

Re: Strange onboard UART behavior

it needs a delay after the spike, something like this might work { sleep 1;printf '\r\n$PMTK104*37\r\n'; } > /dev/ttyAMA0 this would open the serial port once, and connect it first to 'sleep 1' (which doesnt output anything, but gives the gps more then enough time to recover from the glitch) then do...
by cleverca22
Fri Apr 05, 2013 7:34 pm
Forum: Troubleshooting
Topic: Strange onboard UART behavior (solved)
Replies: 11
Views: 2459

Re: Strange onboard UART behavior

depending on the receiver (the gps), the problem might simply be an unexpected dip that is within 1 byte-time of the transmission
if you wait 2 byte-times ( 18/BAUD seconds), then it will properly decode the following bytes, and the only issue would be what it does with that first 'byte'
by cleverca22
Fri Apr 05, 2013 7:33 pm
Forum: General discussion
Topic: VNC - doesn't quite work as it should?
Replies: 6
Views: 10794

Re: VNC - doesn't quite work as it should?

the 'vncserver' script is setup to spawn an entirely new X session, usually at :1

it sounds more like you want x0vncserver, which is a bit more manual, but shares an existing X session
by cleverca22
Fri Apr 05, 2013 7:30 pm
Forum: General discussion
Topic: Teamviewer on Pi???
Replies: 21
Views: 116627

Re: Teamviewer on Pi???

the only working arm version of teamviewer that ive seen, is the android build's, but android itself is uber-slow on the pi right now, your better off finding out whats wrong with vnc (and optionaly tunneling vnc thru openvpn, if you want to bypass more firewalls and make it more secure)
by cleverca22
Fri Apr 05, 2013 7:02 pm
Forum: Troubleshooting
Topic: Strange onboard UART behavior (solved)
Replies: 11
Views: 2459

Re: Strange onboard UART behavior

would the bug not trigger if you open the port and hold it open?

then write bytes out as-needed

(edit: the other thread implies that it only happens at open)

Go to advanced search