XBMC Community Forum
[LINUX] My Asrock 330 ION Tweaks, Tips, Tricks, and Fixes! - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Announcements, Info, and General Discussion (/forumdisplay.php?fid=85)
+--- Forum: Tips, tricks, and step by step guides (/forumdisplay.php?fid=110)
+--- Thread: [LINUX] My Asrock 330 ION Tweaks, Tips, Tricks, and Fixes! (/showthread.php?tid=61697)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23


- X3lectric - 2010-02-02 14:25

Fix: HANG on Shutdown issues with XBMC (only use if you having such issues) as always I'm running as root.

Code:
mv /etc/X11/Xsession.d/90consolekit /etc/X11/Xsession.d/90consolekit-orig
Code:
nano /etc/X11/Xsession.d/90consolekit
copy and paste the following.
Code:
# -*- sh -*-
    # Xsession.d script for ck-launch-session.
    #
    #
    # This file is sourced by Xsession(5), not executed.
    
    #
    # Rationale: If 'startx' is run from within a text console, ConsoleKit session is not marked 'active'
    # Check https://bugs.launchpad.net/ubuntu/+source/consolekit/+bug/483130
    #
    
    
    CK_GET_X11_DISPLAY_DEVICE=/usr/lib/ConsoleKit/ck-get-x11-display-device
    CK_LIST_SESSIONS=/usr/bin/ck-list-sessions
    CK_LAUNCH_SESSION=/usr/bin/ck-launch-session
    
    if [ -x "$CK_GET_X11_DISPLAY_DEVICE" -a -x "$CK_LIST_SESSIONS" -a -x "$CK_LAUNCH_SESSION" ] ; then
        if [ "$($CK_LIST_SESSIONS | grep "$($CK_GET_X11_DISPLAY_DEVICE)")" = "" ] ; then
            STARTUP="$CK_LAUNCH_SESSION $STARTUP"
        fi
    fi

ctrl+o to save

Now when you bring up menu and press shutdown system shouldn't hang anymore.


- monty0815 - 2010-02-02 14:56

Thanks X3lectric for the clarification, so it seems all the trouble of patching and running lm-sensors is quite useless at the moment. Even with the new sensors-detect.

I was wondering if anybody running an ION based system is getting sensible temperature readings from the cpu?

regards,
monty


- rossoneri711 - 2010-02-02 15:01

installed the 1.0.4 nuvoton drivers on ubuntu 9.10 and the remote doesnt work. any ideas?

i followed the instructions, first popup NO/NO, second popup Nuvoton/NO


- X3lectric - 2010-02-02 15:42

rossoneri711 Wrote:installed the 1.0.4 nuvoton drivers on ubuntu 9.10 and the remote doesnt work. any ideas?

i followed the instructions, first popup NO/NO, second popup Nuvoton/NO


Not enough information provided!!


I used putty and a few posts back you can see what the output of that is and it works fine for me. A little more info like outputs and what happens when you grep lirc, for how to grep lirc and paste output look at first posts or google.

it would be nice if you use pastebin to post long outputs.

I would like the outputs for lsmod as well

Also to top it all off it would be nice if you provided your environment e.g. I have full ubuntu desktop + xbmc or I have minimal ubuntu install with XBMC

With full desktop vs minimal install the results of certain commands work differently and other things can affect the proper install or patch of files.

I use terminal or putty depends on if I am in front of machine or I am accessing it remotely via LAN/WAN always and log in as root always to configure or patch files within Linux.


- monty0815 - 2010-02-02 16:14

I had a look around the hwmon modules and found that w83627ehf.ko is supposed to support the W83667HG IO controller, sadly it does not detect the one inside the asrock 330HT.

Anyway, it is possible to force the module into the kernel by running:
Code:
modprobe w83627ehf force_id=0xa510

Code:
Adapter: ISA adapter
in0:         +1.14 V  (min =  +0.00 V, max =  +1.74 V)  
in1:         +0.77 V  (min =  +0.00 V, max =  +0.00 V)   ALARM
in2:         +3.44 V  (min =  +0.00 V, max =  +0.00 V)   ALARM
in3:         +3.42 V  (min =  +0.00 V, max =  +0.00 V)   ALARM
in4:         +1.31 V  (min =  +0.00 V, max =  +0.00 V)   ALARM
in5:         +1.17 V  (min =  +0.00 V, max =  +0.00 V)   ALARM
in7:         +3.46 V  (min =  +0.00 V, max =  +0.00 V)   ALARM
in8:         +3.18 V  (min =  +0.00 V, max =  +0.00 V)   ALARM
fan1:          0 RPM  (min =    0 RPM, div = 1)
fan2:          0 RPM  (min =    0 RPM, div = 1)
fan3:          0 RPM  (min =    0 RPM, div = 1)
fan4:          0 RPM  (min =    0 RPM, div = 1)
temp1:       +64.0°C  (high =  +0.0°C, hyst =  +0.0°C)  ALARM  sensor = diode
temp2:       +57.5°C  (high = +80.0°C, hyst = +75.0°C)  sensor = diode
temp3:       +58.0°C  (high = +80.0°C, hyst = +75.0°C)  sensor = diode
cpu0_vid:   +0.000 V

This looks a lot better than the coretemp values...


- rossoneri711 - 2010-02-02 16:31

X3lectric Wrote:

Not enough information provided!!


I used putty and a few posts back you can see what the output of that is and it works fine for me. A little more info like outputs and what happens when you grep lirc, for how to grep lirc and paste output look at first posts or google.

it would be nice if you use pastebin to post long outputs.

I would like the outputs for lsmod as well

Also to top it all off it would be nice if you provided your environment e.g. I have full ubuntu desktop + xbmc or I have minimal ubuntu install with XBMC

With full desktop vs minimal install the results of certain commands work differently and other things can affect the proper install or patch of files.

I use terminal or putty depends on if I am in front of machine or I am accessing it remotely via LAN/WAN always and log in as root always to configure or patch files within Linux.

Ok sorry for the lack of detail Smile

Well first off i have a full ubuntu desktop with XBMC. I dont use putty, and i have only download the archive of the lirc drivers from the asrock website and followed the instructions.

Since my knowledge of ubuntu is only 2-3 days old, can you be more simplistic in what i need to do for you to check?

eg. is grep lirc a command, so i run and show you the output?

Sorry but i am not yet familiar with Ubuntu. I just finished installing them after lots and lots of days with problems as you can see here http://forum.xbmc.org/showthread.php?tid=69136

If you tell me what to do i will do it. i just need to get my remote control working and fix any sound properties i may set wrong.

sorry in advance.


- the_alien - 2010-02-02 16:50

Go to terminal.
Type "dmesg | grep lirc" without the quotes.
Copy the output to pastebin and post the link.

Same with "lsmod"


- rossoneri711 - 2010-02-02 16:51

the_alien Wrote:Go to terminal.
Type "dmesg grep lirc" without the quotes.
Copy the output to pastebin and post the link.

Same with "lsmod"

thanks a lot!

will do when i get home


- X3lectric - 2010-02-02 17:15

yea monty0815 that is a a way to get support for that enabled however your "how-to" shows you modprobe the driver. this does not mean it will automatically load on reboot. theoretically presuming you want to reload that line would have to be added to rc.local but I'm unsure how well this will perform as is provided.

Since you went to this length to lookout for this it would be nice to see a detailed how to should be posted by yourself only fair for the n00bs like me Rolleyes

However...

Problem is right there if you read some of my posts and what lm-sensors page says that acpi and hwmon both banging same IO ports can destroy your hw heck don't take my word for it, atm I don't care much either since if machine fries again its still under warranty.

Here is a low down of what lm-sensors project have posted on acpi/hwmon and IO ports issues. there's more on this all over google.

http://www.lm-sensors.org/wiki/FAQ/Chapter3

Quote:My sensors have stopped working in kernel 2.6.31 in the mainline 2.6.31 kernel, there is a change which causes hardware monitoring to no longer work on some motherboards. If this is happening for your motherboard, then when the lm_sensors service is starting you are probably getting an error like this:
Code:
FATAL: Error inserting it87
(/lib/modules/2.6.29-15.fc11.x86_64/kernel/drivers/hwmon/it87.ko): Device or
resource busy
And if you look at the kernel messages (using the dmesg command in a terminal for example) you will probably see something like this:
Code:
ACPI: I/O resource it87 [0x295-0x296] conflicts with ACPI region IP__
[0x295-0x296]
ACPI: Device needs an ACPI driver
With previous kernels hwmon drivers used to drive IO ranges which were potentially used by the ACPI code in your BIOS (which is active not only during but also after boot), we now explicitly check for this and if the ACPI code claims the IO-ports used by the hwmon chip, we no longer allow the hwmon driver to load.

Banging IO-ports of a chip from 2 different drivers, the Linux hwmon driver and the ACPI code is a [b]really bad idea and can cause all sort of issues (including things like changing CPU / RAM voltage or clock speed). So the old behaviour was a really bad idea.[/b]

So even though this change in behaviour makes some people unhappy as to old behaviour happened to work without problems in their case (by sheer luck really), this change is really for the best!
If you have an Asus motherboard, chances are good there is an ACPI interface to read your sensors, which is safe, and no more sensors.conf tweaking needed for conversion formulas! Make sure you have the asus_atk0110 driver enabled in your kernel configuration to use this. You will also need lm-sensors version 3.1.0 or later.
If you want to restore the old behaviour (which might be dangerous) add: "acpi_enforce_resources=lax" to the kernel cmdline when booting (or add it in grub.conf to make this permanent).
Notes:
1) This change actually first appeared in the mainline 2.6.30 kernel, but due to a bug in 2.6.30, it didn't take effect until 2.6.31, see: http://bugzilla.kernel.org/show_bug.cgi?id=13967
2) Some distributions have made this change earlier (e.g. Fedora has this change since kernel 2.6.29)
My output on ION HT idle for sensors is on this machine is as follows:

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

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

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

coretemp-isa-0003
Adapter: ISA adapter
Core 3:      +32.0°C  (crit = +95.0°C)
much better then some systems spit out 9 celcious.

Also the address of the chip which is driver-less is @ address 0x290 how did you get to the conclusion of that forced ID? pls post links also to your "good" research so anyone else can have a read to determine other variables.


- X3lectric - 2010-02-02 17:56

I found a patch that once applied may actually add native kernel support for the W83677HG now only have to look how to apply the patch correctly

Things that will be needed to patch is linux-source build essential (more prolly needed)

The Patch can be found here would it not been for monty0815 informative yet little vague post, I wouldn't have used my Master Jedi Google Powers on this...

You can do a
Code:
wget [url]http://ftp.kernel.org/pub/linux/kernel/people/agk/patches/2.6/2.6.30/git-update2.patch[/url]
Also found what monty0815 may have based his post on though the fact like on his post it shows it actually does pull some info off the bios though I believe more info should be added to /etc/sensors3.conf to correctly handle the output. What is found is certainly of some use.

Also there's is no fan speed checking and since all this can be done in bios it makes me think further and proper information must be added otherwise.

First investigation to determine how safe it is to apply this is to find out if ACPI is using the chip IO, if it is not then it should be moderately safe to proceed with this for correct implementation...

I would hate to patch kernel or modprobe force some address which may run avoc with a stable system without having more information, specially I would like to find a stable solution for this.

The idea is generally if proper support is found we can get accurate temps from system and cpu monitor and control fan speeds and overclock the system if any user so chooses straight from terminal or even via python scripting which can be added directly under XBMC.

All that said its good to know monty0815 is curious enough to dig information on this.

I have no knowledge of scripting nor under Linux nor under python nor the time to learn. Though I can do any professional graphical work such python script may require.