|
Page 2 of 8 |
|
Prev |
1 2
3 4
|
Next
| Last
Re: Odds and ends
Quote:
I had it so when I pressed the Enter key, it would run a script to send a Return signal and then close the keyboard. The thing is, when it sent the Return signal, the script would restart all over again. Thus giving me the joy of watching a stupid infinite loop of unhappiness. :D |
Re: Odds and ends
I've changed my mind and decided to never let this thread die. :)
Okay, so I would like to give this a try and see if it will work on Diablo 4. http://talk.maemo.org/showthread.php?t=76162 Here's the .deb. http://repository.maemo.org/extras-d...emo2_armel.deb It's saying that it needs Liblua5.1-0 5.1.3-1. http://maemo.org/packages/package_in...5.1-0/5.1.3-1/ This needs other junk and those also depend on others as well. I'd like to save all of the debs on my memory card and do a manual install. So what are all the debs needed and in what order should they be installed? Thanks. :) |
Re: Odds and ends
By the way, auouymous, if you ever decide to make an invisble, 8 directional, virtual D-Pad on the right middle side of the screen to be used for Picodrive and Drnoksnes, that would make my entire year! :D
That way, the hardware keys on the left would be mapped as game buttons and you would have touch screen movement on the right. Having this would open up a whole world of emulated games that previously wouldn't work well at all on the older N800. Kind regards. -James |
Re: Odds and ends
Quote:
I'll get right on that! ;) |
Re: Odds and ends
^ I'm now going to write a song about you!
Thanks! :D |
Re: Odds and ends
Quote:
|
Re: Odds and ends
^ Yeah, I've tried this with all of the hardware keys with no such luck on any of them.
|
Re: Odds and ends
Seriously? Will I ever let this thread die?! :D
Okay. Well so far this is very preliminary. Anyway, while running TinyFugue, there will be at times two keyboards on the screen. http://img33.imageshack.us/img33/499...1090323001.png When I press the Enter key, I would like only the top keyboard to close. If I have two running apps that are the same (both are Xkbd), how can I kill just this specific one? All I know how to do is killall xkbd but that closes them both. Kind regards! :) |
Re: Odds and ends
Quote:
|
Re: Odds and ends
Yeah, I kinda knew that one already.
How do I get the PID though? The only way I know of is to type top in Xterm. Also the PIDs seems to be completely random so there's no way of me possibly guessing as to what it may be each time. |
Re: Odds and ends
Quote:
Code:
kill `pidof -s xkbd`Code:
xkbd & PID1=$! |
Re: Odds and ends
Thanks!
I will definitely give this a try! :) |
Re: Odds and ends
I'm not seeing what I'm doing wrong on this.
I launch this just once in the beginning. It's the bottom keyboard that will always remain on the screen. xkbd -geometry +65520+65992 -k /media/mmc2/N800/Keyboards/Med.xkbd & PID1=$! & filterm ascii-ascii cp437-utf8 tf When pressing the fullscreen key, it brings up the big keyboard. xkbd -geometry +65507+65536 -k /media/mmc2/N800/Keyboards/Full.xkbd & PID2=$! When I press Enter on that big keyboard, it executes this. kill $PID2 xte 'keydown KP_Enter' 'keyup KP_Enter' It's not killing the big keyboard though. From what you told me, this should be correct. |
Re: Odds and ends
Quote:
Something like: Code:
#launch script |
Re: Odds and ends
Thank you Mac!
What I ended up doing was making a copy of /usr/bin/xkbd and having another one called xkbd2. I like your idea better though. :D |
Re: Odds and ends
Quote:
|
Re: Odds and ends
Hey, there's one other thing I wanted to ask.
I love Xmms. I also love how you can use the zoom in and out keys to change tracks. The thing is, this doesn't work with the tablet locked so that the screen is turned off to save on battery life. Is there any possible trick around this? Also, I usually don't have Xmms on the screen either since it can be graphically intensive. Is there perhaps a way to focus the zoom keys directly to Xmms even while it's minimized? Cheers again! :) |
Re: Odds and ends
Quote:
Each time you press a key the screen will turn on but your script will relock it. The only problem is that all keys will be active, you could of course write an Xlib app that grabs keys you don't want active and ignore them. :) Quote:
|
Re: Odds and ends
any thoughts on replacing old buggy cs compiler with upstream 4.4.x or 4.5.x or 4.6.x
|
Re: Odds and ends
Wow auouymous!
Whut?! *lol* I wish that you just would have said that it's not possible instead. That I would have understood. :) Anyway, I'll look into those MCE and DBUS thingies you suggested and see if I can do something without breaking my tablet. :D |
Re: Odds and ends
Quote:
Thoughts? |
Re: Odds and ends
Isn't the dim/blank timeout done in milliseconds?
Why not just set it at 1? Maybe it won't even be noticeable. :) |
Re: Odds and ends
Quote:
|
Re: Odds and ends
Quote:
The idea behind this program (was supposed to be) is simple: If the zoom in/out keys are pressed are pressed while the tablet is locked and the display is dimmed/off, it will run /home/user/xmmskey and pass which zoom key was pressed by passing it as argv[1] (in a script, you can check if $1 = "in") and you could run xmmsctrl (available from free's debfarm repository) from this script. If a resident Maemo 4 programmer (I don't know what I'm doing!) knows where I've messed up, I'll fix it, but it seems like auouymous is working on something anyway. PHP Code:
|
Re: Odds and ends
Quote:
|
Re: Odds and ends
Quote:
The key handling code looks correct, ASUI uses similar code to read the power button but not glib, maybe a problem with glib. Have you tried Code:
printf("event: time=%f, type=%u, code=%u, value=%d\n", (float)ev.time.tv_sec + (float)ev.time.tv_usec / 1000000.0, ev.type, ev.code, ev.value); |
Re: Odds and ends
Ooh! Hey!
I finally got around to using the built in Email with my Gmail POP account after all these years. I love how I can now receive LED notifications. :) Is there any hack to have it scan for new messages every minute though? The lowest setting is only at every 5 minutes. |
Re: Odds and ends
Quote:
|
Re: Odds and ends
Quote:
If it comes by email, sure it can wait 5 minutes, can't it? |
Re: Odds and ends
I only ask because LED notification for Dial Central is still broke with it's latest build.
This would be a simple alternative instead. :) |
Re: Odds and ends
In Configuration Editor that I installed, I changed:
apps-->modest-->update_interval from 5 to 1 (thinking this meant in minutes) The value is changed and saved but it doesn't seem to take since it still updates every 5 minutes. Perhaps there's a command line for this instead? |
Re: Odds and ends
2 Attachment(s)
Thanks for replying. :)
Quote:
Anyway, I've sorted that out. Thanks for providing paths for both the N800 and N810. Quote:
Quote:
@Addison If this appeals to you, you can try the binary attached. You will need to gunzip it, and then run it as root. What it does is, when the tablet is locked and the screen is dimming/off, pressing the zoom in/zoom out key will run a script located at /home/user/xmmskey and then immediately blank the screen. The xmmskey script will be run as the root user, so bear that in mind. In the xmmskey script, you can have something like the following: Code:
#!/bin/sh |
Re: Odds and ends
Is this correct so far?
http://img691.imageshack.us/img691/6...1091415393.png In Xterm I typed: cd /media/mmc1/ gzip -d file.gz I then moved it to home/user with what I think are the correct permissions. Quote:
http://img813.imageshack.us/img813/6...1091415463.png |
Re: Odds and ends
Yeah, sorry, I'm not a programmer and it shows with the way I thought this program out
The xmmskey program can't be in /home/user because that's where the program will look for the xmmskey script file - move the binary to another place and create the xmmskey script in /home/user - the program will call the script If you get it working and think it works OK, let me know and I'll try my hardest tomorrow to package it up into a deb so that you don't need to keep a X Terminal open all the time with an instance of this program to use it |
Re: Odds and ends
So I have to write my own script with this?
Well, I'm completely pooched then. :) I was hoping that the F8 and F7 key could still be sent to Xmms while the screen was locked. I wouldn't have the first idea on how to write such a script. So I rename /home/user/xmmskey to something like /usr/bin/screenlock? Couldn't I just launch screenlock & xmms so there wouldn't be a nagging Xterm on the screen? Many thanks on doing this for us by the way. :) |
Re: Odds and ends
Quote:
Install xmmsctrl from the link I gave before. Create a new file: /home/user/xmmskey. Paste in the template I put up before, the /bin/sh thing wrapped in CODE tags. Now I put in two pairs of elipses (sorry for spelling, typing on a phone), replace the first pair with "xmmsctrl next" (w/o quotes) and replace the second with "xmmsctrl previous". This will run those commands when pressing zoom in and zoom out, respectively. Regarding renaming the program: Sure, if you wish. Yes, you could do that (do you launch XMMS through a script already?), just make sure to run "killall xmmskey" (or screenlock, if you renamed it) No problem. :) I'll be able to better help when I'm behind a computer |
Re: Odds and ends
Quote:
Code:
case $1 inAnd yes, you should be able to put screenlock in the background by appending &. Or better yet, add it to the local start file which might be /etc/rc.local, not sure though. Try creating that file, put "/usr/bin/screenlock &" in it, reboot and see if the program is running. BTW, where can I find xmms to install it? |
Re: Odds and ends
@auouymous
http://talk.maemo.org/showpost.php?p...2&postcount=83 Xmms is by far my favorite player. http://img32.imageshack.us/img32/953...1062509464.png Also, don't forget, if you want a very unique skin for this, most of the Winamp skins, which are .wsz files, will work as well. :) You can also open the .wsz file with something like unrar or winzip and edit the graphics or even replace them as well. |
Re: Odds and ends
Okay. I think this is all set up right from what I can tell.
http://img35.imageshack.us/img35/104...1091418143.png Inside /home/user/xmmskey I have... Code:
#!/bin/shxmmslock No errors from this. I then launch Xmms and can switch tracks with the zoom keys. When I lock the tablet though the zoom keys don't register. Still no error in Xterm. What am I missing on this? EDIT: xmms next does work by command line. :) Cheers. :) |
Re: Odds and ends
Quote:
Quote:
|
| All times are GMT. The time now is 21:02. |
Page 2 of 8 |
|
Prev |
1 2
3 4
|
Next
| Last
vBulletin® Version 3.8.8