• 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 16
[LINUX] My Asrock 330 ION Tweaks, Tips, Tricks, and Fixes!
#61
X3lectric Wrote:Lirc CIR Drivers and super IO sensor drivers posted on my 3 post at bottom, for the HT models enjoy.

Yeaha, thanks for that X3ectric. Just installed the deb file and the remote is working. After installation I only had to choose the right manufacturer.

Code:
root@XBMC-LIVE:/home/xbmc# dpkg -i lirc-nct677x-1.0.0-ubuntu9.10.deb
Selecting previously deselected package lirc-nct677x.
(Reading database ... 42624 files and directories currently installed.)
Unpacking lirc-nct677x (from lirc-nct677x-1.0.0-ubuntu9.10.deb) ...
Setting up lirc-nct677x (1.0.0-ubuntu9.10) ...
Copy patch file...
* Stopping remote control daemon(s): LIRC                               [ OK ]
`/usr/share/lirc_wb677/lirc_wb677.ko' -> `/lib/modules/2.6.31-16-generic/kernel/                                                                                                                                                             ubuntu/lirc/lirc_wb677/lirc_wb677.ko'
/etc/lirc/lircrc not existed. copy it directly.
patching file /usr/share/lirc/lirc.hwdb


You can test this via the command: irw
Code:
root@XBMC-LIVE:/home/xbmc# irw
000000037ff07be1 00 Up mceusb
000000037ff07bde 00 Right mceusb
000000037ff07bee 02 VolDown mceusb
000000037ff07bef 00 VolUp mceusb

Next tasks is to create a working .lircrc file so xbmc will also react.
Reply
#62
Really awesome.
Installed lirc 0.8.6, installed the drivers, the lircd.conf seems to be supplied within the driver and it is working.

Good I didn't choose the none HT because I thought they will never supply the correct drivers Smile

edit:
X3 asked me to supply a step by step with what I did.

This guide is meant to be for Karmic, if you're using another Version of Ubuntu or distro it might work different.
XBMC Live Beta/RC are on Karmic Wink

1. installed lirc 0.8.6
2. downloaded the driver from here, unrared them and pushed them onto the Asrock through scp
Code:
scp -r lirc-nct677x-1.0.0-ubuntu9.10.rar_Folder <your username>@<your ion ip>:~/
(your folder may vary, it is the one StuffIt Expander created on my Mac)
3. installed the driver
Code:
dpkg -i lirc-nct677x-1.0.0-ubuntu9.10.deb
(dpkg-reconfigure started automaticly on my ion, if it doesnt for you just type
Code:
dpkg-reconfigure lirc
)
2. selected Nuvoton Transceivers/Remotes from the Menu and None for the Transmitter
3. wanted to edit the /etc/lirc/lircd.conf and found: "include "/usr/share/lirc/remotes/lirc_wb677/lircd.conf.wb677""
4. rebooted XBMC and everything is working

If you need an lircrc file here is mine:
Code:
# lirc_wb667 replace start #

########################################################
# LC : NOTICE !!
#      EDIT THIS FILE in linux environment to avoid bug of lirc_client.c (lirc_readconfig_internal)
#        => make sure line ending is '\n' instead of '\r''\n'
########################################################

#######################
###  for MPlayer   ####
#######################

# This is the config file for lirc to support mplayer.
# Copy this file as ~/lircrc or /etc/lirc/lircic

begin
     button = VolUp
     prog = mplayer
     config = volume 1
     repeat = 1
end

begin
    button = VolDown
    prog = mplayer
    config = volume -1
    repeat = 1
end

begin
     button = ChanUp
     prog = mplayer
     config = tv_step_channel 1
     repeat = 1
end

begin
    button = ChanDown
    prog = mplayer
    config = tv_step_channel -1
    repeat = 1
end

begin
    button = OK
    prog = mplayer
    config = pause
end

begin
    button = Play
    prog = mplayer
    config = pause
end

begin
    button = Pause
    prog = mplayer
    config = pause
end

begin
    button = Stop
    prog = mplayer
    config = seek 0 1\npause
end

begin
    button = Mute
    prog = mplayer
    config = mute
end

begin
    button = Right
    prog = mplayer
    config = seek +10
    repeat = 1
end

begin
    button = Left
    prog = mplayer
    config = seek -10
    repeat = 1
end

begin
    button = Down
    prog = mplayer
    config = seek -60
    repeat = 1
end

begin
    button = Up
    prog = mplayer
    config = seek +60
    repeat = 1
end

begin
    button = Back
    prog = mplayer
    config = seek -600
    repeat = 1
end

begin
    button = Rewind
    prog = mplayer
    config = seek -600
    repeat = 1
end

begin
    button = Forward
    prog = mplayer
    config = seek +600
    repeat = 1
end
    



#######################
### for Rhythmbox  ####
#######################

    # to see debug info of Rhythmbox : exec "rhythmbox -d 2>&1 | grep lirc"
    #
    # the following section are copied from rb-lirc-plugin.c found on web.
    #
        #define RB_IR_COMMAND_PLAY "play"
        #define RB_IR_COMMAND_PAUSE "pause"
        #define RB_IR_COMMAND_PLAYPAUSE "playpause"
        #define RB_IR_COMMAND_STOP "stop"
        #define RB_IR_COMMAND_SHUFFLE "shuffle"
        #define RB_IR_COMMAND_REPEAT "repeat"
        #define RB_IR_COMMAND_NEXT "next"
        #define RB_IR_COMMAND_PREVIOUS "previous"
        #define RB_IR_COMMAND_SEEK_FORWARD "seek_forward"
        #define RB_IR_COMMAND_SEEK_BACKWARD "seek_backward"
        #define RB_IR_COMMAND_VOLUME_UP "volume_up"        => LC : nothing happens ??
        #define RB_IR_COMMAND_VOLUME_DOWN "volume_down" => LC : nothing happens ??
        #define RB_IR_COMMAND_MUTE "mute"

    begin
        prog = Rhythmbox
        button = Play
        config = play
    end
    begin
        prog = Rhythmbox
        button = Pause
        config = pause
    end
    begin
        prog = Rhythmbox
        button = Stop
        config = stop
    end
    begin
        prog = Rhythmbox
        button = Forward
        config = seek_forward
    end
    begin
        prog = Rhythmbox
        button = Rewind
        config = seek_backward
    end
    begin
        prog = Rhythmbox
        button = Skip
        config = next
    end
    begin
        prog = Rhythmbox
        button = Replay
        config = previous
    end
    begin
        prog = Rhythmbox
        button = VolUp
        config = volume_up
    end
    begin
        prog = Rhythmbox
        button = VolDown
        config = volume-down
    end

#######################
### for Totem  ####
#######################

    # the following section are copied from totem-lirc.c found on web.
    #
        #define TOTEM_IR_COMMAND_PLAY "play"
        #define TOTEM_IR_COMMAND_PAUSE "pause"
        #define TOTEM_IR_COMMAND_NEXT "next"
        #define TOTEM_IR_COMMAND_PREVIOUS "previous"
        #define TOTEM_IR_COMMAND_SEEK_FORWARD "seek_forward"
        #define TOTEM_IR_COMMAND_SEEK_BACKWARD "seek_backward"
        #define TOTEM_IR_COMMAND_VOLUME_UP "volume_up"
        #define TOTEM_IR_COMMAND_VOLUME_DOWN "volume_down"
        #define TOTEM_IR_COMMAND_FULLSCREEN "fullscreen"
        #define TOTEM_IR_COMMAND_QUIT "quit"
        #define TOTEM_IR_COMMAND_UP "up"
        #define TOTEM_IR_COMMAND_DOWN "down"
        #define TOTEM_IR_COMMAND_LEFT "left"
        #define TOTEM_IR_COMMAND_RIGHT "right"
        #define TOTEM_IR_COMMAND_SELECT "select"
        #define TOTEM_IR_COMMAND_MENU "menu"
        #define TOTEM_IR_COMMAND_PLAYPAUSE "play_pause"
        #define TOTEM_IR_COMMAND_ZOOM_UP "zoom_up"
        #define TOTEM_IR_COMMAND_ZOOM_DOWN "zoom_down"
        #define TOTEM_IR_COMMAND_SHOW_PLAYING "show_playing"
        #define TOTEM_IR_COMMAND_SHOW_VOLUME "show_volume"
        #define TOTEM_IR_COMMAND_EJECT "eject"
        #define TOTEM_IR_COMMAND_PLAY_DVD "play_dvd"
        #define TOTEM_IR_COMMAND_MUTE "mute"

    begin
        prog = Totem
        button = Play
        config = play
    end
    begin
        prog = Totem
        button = Pause
        config = pause
    end
    begin
        prog = Totem
        button = Stop
        config = stop
    end
    begin
        prog = Totem
        button = Forward
        config = seek_forward
    end
    begin
        prog = Totem
        button = Rewind
        config = seek_backward
    end
    begin
        prog = Totem
        button = Skip
        config = next
    end
    begin
        prog = Totem
        button = Replay
        config = previous
    end
    begin
        prog = Totem
        button = VolUp
        config = volume_up
    end
    begin
        prog = Totem
        button = VolDown
        config = volume-down
    end

# lirc_wb667 replace end #
Reply
#63
can you post your /etc/lirc/hardware.conf contents pls for comparison.
Reply
#64
followed the same steps. doesn't work though. nothing in irw.
Reply
#65
Tried it and it worked for me, very happy Big Grin Although my new usb MCE remote turned up today Laugh

Do I need to install lirc 0.8.6? Just insatlled the driver for the remote and it seems to work ok so far. Just working out the button assignments but most functions I need seem to be working.

For some reason the remote does not seem to be powering on the ASRock anymore, worked yesterday?? Huh Must check the bios again.

So now if I can get the remote to suspend rather than power off and then resume I will be very happy.
Reply
#66
andyjayh Wrote:For some reason the remote does not seem to be powering on the ASRock anymore, worked yesterday?? Huh Must check the bios again.

So now if I can get the remote to suspend rather than power off and then resume I will be very happy.

My remote doesn't power on the Asrock anymore either! It only works when I re-save the setting in the bios, and force shutdown the Asrock while booting.

P.S: No-one has got the resume after suspend function working yet?
Reply
#67
andyjayh Wrote:For some reason the remote does not seem to be powering on the ASRock anymore, worked yesterday?? Huh Must check the bios again.
Yeah, having the same problem. Installed everything and now it wont power on anymore (right after installation). It is enabled in BIOS ...
Reply
#68
Found a thread for the 330HT remote resume problem so posting there rather than this thread;

http://forum.xbmc.org/showthread.php?tid=63459
Reply
#69
andyjayh Wrote:Tried it and it worked for me, very happy Big Grin Although my new usb MCE remote turned up today Laugh

Do I need to install lirc 0.8.6? Just insatlled the driver for the remote and it seems to work ok so far. Just working out the button assignments but most functions I need seem to be working.

For some reason the remote does not seem to be powering on the ASRock anymore, worked yesterday?? Huh Must check the bios again.

So now if I can get the remote to suspend rather than power off and then resume I will be very happy.

Look on my post for the complete button assignment obviously the filename changes to the nuovoton one but essentially the mapping is the same. The driver requested lirc 0.8.6. to install but if you have it working with another version well if it works for you....
Reply
#70
the_alien Wrote:Yeah, having the same problem. Installed everything and now it wont power on anymore (right after installation). It is enabled in BIOS ...

Read my post here:
http://forum.xbmc.org/showthread.php?p=4...post463638
Reply
#71
Big Grin 
Wake on device and HT CIR drivers post UPDATED here http://bit.ly/70uahK that link goes to post 3 of this topic... =)

Ontopic
Due to 10k characters per post limitation and would be easier to navigate goto specific part to be a wiki article for better navigation and easy of use! However I don't want grovel for ninja access to xbmc wiki I've provided a means to groundwork start to a platform specific and outlining other similar based platforms which operation and configuration should be fairly equal. with the proper collaboration a ION based complete HOW to could be made.

On offtopic note I have been accused on other topics of being rude, arrogant and am not helping at all...

I would like to clarify that sometimes when and especially in Linux and forums users all over JUST don't bother reading what is relevant already been posted and resolved.

I will not handhold anyone I don't get handheld here, I will only ask kindly others on these forums who have found my posts/topics helpful to help add to this topic's information database for a proper how to. The ones who arew too lazy to read up 4 posts for the solution, deserve no quarter just a swift reminder to wake the F up. If your not learning anything at all form my posts and find me so repulsive then tough crackers. If you dont like me, wait Im gonna have a cry on the corner, not!
Reply
#72
There is also a 64bit CIR driver now I read somewhere that the current wouldn't work with 64 bit obviously, since I am driving nuvoton and pushing the to provide proper code to be integrated into lirc and lm-sensors.

Please see my 3rd post for downland link for 64bit version.

thx to the_alien for his pointers on how to set this up, his post needs a few tweaks but it essentially points in the correct direction.

ensure that when you do
[font=新細明體]
[/font]
lsmod | grep lirc that the lirc_wb677 is running as module.

Regards.

*Edit

In the meanwhile I'm working with nuvoton, lirc and lm-sensors projects to push for proper implementation of this into future versions of both programs.
Reply
#73
CIR Drivers update 1.0.1 all updated with how to setup correctly.
Reply
#74
i have problem with cpu sensors with patched coretemp ;(

Code:
sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +6.0°C  (crit = +95.0°C)

coretemp-isa-0001
Adapter: ISA adapter
Core 1:      +16.0°C  (crit = +95.0°C)

coretemp-isa-0002
Adapter: ISA adapter
Core 2:       +5.0°C  (crit = +95.0°C)

coretemp-isa-0003
Adapter: ISA adapter
Core 3:      +16.0°C  (crit = +95.0°C)

on the bios system show correct temperatures ;(
kernel:
2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009

Asrock ION 330 HT BD
Reply
#75
X3lectric Wrote:CIR Drivers update 1.0.1 all updated with how to setup correctly.

I cant load this driver to kernel 2.6.28-17-generic (Jaunty), found the link that says (OK Jaunty and Karmic)

This is what I get on Jaunty:
Code:
>sudo modprobe lirc_wb677
FATAL: Error inserting lirc_wb677 (/lib/modules/2.6.28-17-generic/kernel/ubuntu/lirc/lirc_wb677/lirc_wb677.ko): Invalid module format

:confused2:
Reply
  • 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 16

Logout Mark Read Team Forum Stats Members Help
[LINUX] My Asrock 330 ION Tweaks, Tips, Tricks, and Fixes!5