[LINUX] My Asrock 330 ION Tweaks, Tips, Tricks, and Fixes!

  Thread Rating:
  • 5 Vote(s) - 4.2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Wingie Offline
Junior Member
Posts: 48
Joined: Dec 2009
Reputation: 0
Post: #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:
[email protected]:/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:
[email protected]:/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.
find quote
the_alien Offline
Team-XBMC Android Remote Developer
Posts: 423
Joined: May 2008
Reputation: 0
Post: #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 #
(This post was last modified: 2009-12-21 15:19 by the_alien.)
find quote
X3lectric Offline
Closed Account
Posts: 1,756
Joined: Feb 2006
Location: in a Dropbox
Post: #63
can you post your /etc/lirc/hardware.conf contents pls for comparison.
(This post was last modified: 2009-12-21 18:34 by X3lectric.)
find quote
keoma Offline
Junior Member
Posts: 26
Joined: Dec 2009
Reputation: 0
Post: #64
followed the same steps. doesn't work though. nothing in irw.
find quote
andyjayh Offline
Member
Posts: 78
Joined: Dec 2007
Reputation: 0
Post: #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?? Confused 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.
find quote
generator Offline
Senior Member
Posts: 159
Joined: Oct 2009
Reputation: 0
Location: The Netherlands
Post: #66
andyjayh Wrote:For some reason the remote does not seem to be powering on the ASRock anymore, worked yesterday?? Confused 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?
find quote
the_alien Offline
Team-XBMC Android Remote Developer
Posts: 423
Joined: May 2008
Reputation: 0
Post: #67
andyjayh Wrote:For some reason the remote does not seem to be powering on the ASRock anymore, worked yesterday?? Confused 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 ...
find quote
andyjayh Offline
Member
Posts: 78
Joined: Dec 2007
Reputation: 0
Post: #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
find quote
X3lectric Offline
Closed Account
Posts: 1,756
Joined: Feb 2006
Location: in a Dropbox
Post: #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?? Confused 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....
find quote
generator Offline
Senior Member
Posts: 159
Joined: Oct 2009
Reputation: 0
Location: The Netherlands
Post: #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
find quote
X3lectric Offline
Closed Account
Posts: 1,756
Joined: Feb 2006
Location: in a Dropbox
Big Grin   
Post: #71
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!
find quote
X3lectric Offline
Closed Account
Posts: 1,756
Joined: Feb 2006
Location: in a Dropbox
Post: #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.
(This post was last modified: 2009-12-23 14:11 by X3lectric.)
find quote
X3lectric Offline
Closed Account
Posts: 1,756
Joined: Feb 2006
Location: in a Dropbox
Post: #73
CIR Drivers update 1.0.1 all updated with how to setup correctly.
find quote
seal Offline
Junior Member
Posts: 5
Joined: Aug 2008
Reputation: 0
Post: #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
find quote
_ml_ Offline
Junior Member
Posts: 4
Joined: Dec 2009
Reputation: 0
Post: #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:
find quote
Post Reply