View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 55 posts ] 
Go to page Previous  1, 2, 3, 4  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Fri Mar 25, 2005 11:12 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
Well, are you trying to do this as root? Are you ssh'd into the boxen?
Code:
man xhost

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 26, 2005 11:53 am 
Offline
Joined: Fri Jan 09, 2004 8:30 pm
Posts: 146
Location: Reno, NV
The workaround works fine. You will need to follow these instructions to get it to run every time (http://mysettopbox.tv/phpBB2/viewtopic.php?t=3093&highlight=xmodmap).

This seems to be an issue in the ati_remote.c code. I wasn't able to compile (make ati_remote) it to try some things. I even tried the 2.6.11 kernel. There were differences, but I wasn't able to compile that one either with the same error (storage size of `ati_remote_driver' isn't known).


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 26, 2005 12:09 pm 
Offline
Joined: Fri Jan 09, 2004 8:30 pm
Posts: 146
Location: Reno, NV
I should point out that is happening across distros (Fedora, Debian).


Top
 Profile  
 
 Post subject: ati sensitivity
PostPosted: Sat Mar 26, 2005 4:00 pm 
Offline
Joined: Mon Nov 15, 2004 8:55 pm
Posts: 2
Does anyone else have the problem with the sensitivity on the ati remote? In r4v5 it would sometimes not recognize all the button presses.. i would have to repeat to get it to recognize. Now, on r5a12, with ati_remote, it's the exact opposite. If I am trying to press say the number 2, sometimes it registers as much as 3 2's. I was wondering if anyone else has this happening.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 26, 2005 6:18 pm 
Offline
Joined: Sat Aug 07, 2004 1:55 am
Posts: 219
Location: West Lafayette, IN
OK... still not working.
I have used

Code:
exec xmodmap /home/.xmodmaprc


I keep getting the same error...
Code:
Unable to open display ''


Let me start at the beginning... maybe I'm missing something fundamental.

I have a clean install of KnoppMyth R5A12.

I followed the instructions here: http://remotew.free.fr/linux_en.htm beginning with editing the XF86Config-4 file and continuing to the bottom of the page. I created an .xmodmaprc file and saved it to /home.

I tried logging in as root, I tried logging in as mythtv, I tried via SSH, I tried directly at the box. Every time I get "unable to open display" error.
Since I couldn't get the command to exec on its own, I tried the instructions here: http://mysettopbox.tv/phpBB2/viewtopic.php?t=3093&highlight=xmodmap to make it run at startup.

Still doesn't work. Anything else I should try?

And chrix... I also have noticed the sensitivity difference between r4v5 and R5A12... much more sensitive. I can get used to it, if I could just get xmodmap to work!!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 26, 2005 11:42 pm 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
you need to use an xterm from the actual box inside xwindows to run an X based program do not su to root do not do anything but run xterm and type the command you want.

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 27, 2005 2:05 pm 
Offline
Joined: Sat Aug 07, 2004 1:55 am
Posts: 219
Location: West Lafayette, IN
Woo Hoo! Xsecrets... you made my day! I guess I'm just an idiot who was trying to run an x based program outside of an x window...

Thanks for the help! It works beautifully.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 27, 2005 3:09 pm 
Offline
Joined: Sat Aug 07, 2004 1:55 am
Posts: 219
Location: West Lafayette, IN
New question...
Now that I have xmodmap working, I'd like to create a separate modmap for mplayer so the volume controls work properly, instead of having to use 0 and 9.

I tried the example found here: http://remotew.free.fr/linux_en.htm and added
Code:
xmodmap /home/.xmodmaprcvid |
before the mplayer launch command.

This worked beautifully, except that as soon as I exited mplayer and went back to live or recorded TV, the modmap for the volume up/down keys were incorrect.

Is there any way to load my standard .xmodmap file on mplayer exit?

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 27, 2005 4:00 pm 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
you could create a small script file that runs your xmodmap command then launches mplayer and once control is returned runs another xmodmap command then in the settings call your script instead of mplayer.

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 27, 2005 4:53 pm 
Offline
Joined: Sat Aug 07, 2004 1:55 am
Posts: 219
Location: West Lafayette, IN
Any volunteers to write that script for me? Or at least point me to a tutorial that will instruct me on the relevant commands?


Top
 Profile  
 
 Post subject: Re: ati sensitivity
PostPosted: Sun Mar 27, 2005 10:09 pm 
Offline
Joined: Fri Jan 09, 2004 8:30 pm
Posts: 146
Location: Reno, NV
chrix wrote:
Does anyone else have the problem with the sensitivity on the ati remote? In r4v5 it would sometimes not recognize all the button presses.. i would have to repeat to get it to recognize. Now, on r5a12, with ati_remote, it's the exact opposite. If I am trying to press say the number 2, sometimes it registers as much as 3 2's. I was wondering if anyone else has this happening.


I looked some more at ati_remote.c. There is a variable called FILTER_TIME. It is set to the same amount as the previous code. Changing it to 100ms instead of 50ms may help out. However, I can't compile it. BTW I am having the issue with sensitivity.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 30, 2005 11:28 pm 
Offline
Joined: Tue Mar 29, 2005 10:14 pm
Posts: 15
After several hours of troubleshooting and configuring I created to decent .xmodmap configs. One for myth and one for xine, I thought I would share them.
The mythfrontend one does not include any TV related things, as my mythtv box doesn't do TV. I'm using it purely as a DVD/Movie/Music device. Though if you look at the files you'll see it would be incredibly easy to modify this on your own.
I mapped all the buttons (for the most part) according layout in this post.

I strongly recomend following all the instructions in the parent topic before hand (such as editing your XFree86[-4] in /etc/X11).

I'm also providing two shell scripts I use in MythTv to run DVDs and Movies. These should go in /usr/local/bin and be chmoded to 755 to make them executable. Then in Mythtv > Setup > Media Settings > DVD Settings > Player Settings change the command to 'xine-post'
In the Movie Settings > Player Settings change the command to 'xine-postvid'

Note: The xine config is a bit rough, and it you should be aware that i changed my .xine/keymap a bit. So you might have to change the keys. I also edited my mysql jumppoints table as follows:
Play a DVD - changed keylist value to F8
Play a VCD - changed keylist value to F7 - In my config this ejects my DVD drive, because i changed the Play VCD command to 'eject /dev/hdc' This might not be desireable to yourself.
Video Manager - changed keylist value to F11
Video Browser - changed keylist value to F10

As for keycodes I don't know if they will work on others, i don't know why not as long as you have a somewhat recent Remote wonder. If not use xev as described previously to determine the correct code.

The reason the 'A' and 'B' buttons on the remote were mapped to space and backspace, respectively, was because it made editing Video metadata (in the video manager) easier with the remote. So now I no longer need a keyboard to change that data.


.xmodmap_mythfrontend
Code:
! Escape
keycode 29 = Escape
! Play/Pause
keycode 46 = p
keycode 33 = p
! Skip fwd
keycode 60 = greater
! Skip back
keycode 59 = less
! Info
keycode 25  = i
! Toggle Edit
keycode 40 = E
! Queue Transcode
keycode 52 = X
! Menu
keycode 58 = M
! Mute
keycode 51 = backslash
! vol Up
keycode 35 = bracketright
! vol down
keycode 34 = bracketleft
! channel up
keycode 105 = Prior
! channel down
keycode 99 = Next
! Play DVD
keycode 74 = F8
! movie list
keycode 30 = F10
! DVD rip
keycode 27 = F9
! quit
keycode 222 = q
! eject
keycode 136 = F7
! backspace
keycode 43 = BackSpace
! space
keycode 38 = space




.xmodmap_xine
Code:
! QUIT
keycode 222 = q
! PLAY
keycode 33 = p
! PAUSE
keycode 46 = space
! STOP
keycode 232 = x
! EJECT
keycode 26 = e
! MUTE
keycode 51 = w
! SLOWER
keycode 59 = Down
! FASTER
keycode 60 = Up
! VoL UP
keycode 35  = v
! VOL DWN
keycode 34 = j
! Root menu
keycode 29 = backslash
! next chapter
keycode 102 = bracketright
! Prev chapter
keycode 100 = bracketleft
! Show Controls
keycode 58 = g
! Next Sub
keycode 38 = a
! Prev Sub
keycode 43 = b



For DVD playback:
/usr/local/bin/xine-post
Code:
xmodmap $HOME/.xmodmap_xine | xine -pfhq --post tvtime:method=Greedy2Frame,enable=1,pulldown=vektor,framerate_mode=full,judder_correction=yes,use_progressive_frames=yes --post denoise32 --post unsharp:luma_amount=0.5 dvd://


For Movie playback:
/usr/local/bin/xine-postvid
Code:
xmodmap $HOME/.xmodmap_xine | xine -pfhq $1


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 30, 2005 11:34 pm 
Offline
Joined: Tue Mar 29, 2005 10:14 pm
Posts: 15
The only issue i am having now is that after I exit xine, I need someway to execute the xmodmap for mythfrontend again.

Anyone have any idea on how I could do this?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 31, 2005 12:13 am 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
just add a second line to your scripts to set things back. once the first command completes (xine exits) it will fall to the second command.

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 31, 2005 3:52 pm 
Offline
Joined: Sat Aug 07, 2004 1:55 am
Posts: 219
Location: West Lafayette, IN
Outpour - how are you referencing the script you wrote in the "DVD Player Command:" box in the DVD Player Settings?

I tried a similar script to remap the remote for mplayer, but didn't have any luck getting MythTV to launch the script when I select a video to play.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 55 posts ] 
Go to page Previous  1, 2, 3, 4  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu