[LINUX] HOW-TO to install Ubuntu and XBMC on Zotac MAG Mini HD-ND01 Ion the easy way

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
spocky184 Offline
Junior Member
Posts: 17
Joined: Jan 2010
Reputation: 0
Post: #11
@mcarthurc
@wahooka

The only way that works for me is this way:

start a terminal and type:
Code:
cat /proc/acpi/wakeup

Only interesting settings are the folllowing (all USB Ports):

Quote:USB0 S4 disabled pci:0000:00:04.0
USB2 S4 disabled pci:0000:00:04.1
US15 S4 disabled pci:0000:00:06.0
US12 S4 disabled pci:0000:00:06.1

So you see, all Ports are disabled by default.

To enable them open the file /etc/rc.local
Code:
sudo gedit /etc/rc.local

put the following lines before the exit 0 entry
Quote:# Enable wakeup for USB0
status=`cat /proc/acpi/wakeup | grep "USB0" | awk {'print $3}'`
if [ "$status" = "disabled" ]; then
echo "USB0" > /proc/acpi/wakeup
fi

# Enable wakeup for USB2
#status=`cat /proc/acpi/wakeup | grep "USB2" | awk {'print $3}'`
#if [ "$status" = "disabled" ]; then
#echo "USB2" > /proc/acpi/wakeup
#fi

# Enable wakeup for US12
#status=`cat /proc/acpi/wakeup | grep "US12" | awk {'print $3}'`
#if [ "$status" = "disabled" ]; then
#echo "US12" > /proc/acpi/wakeup
#fi

# Enable wakeup for US15
#status=`cat /proc/acpi/wakeup | grep "US15" | awk {'print $3}'`
#if [ "$status" = "disabled" ]; then
#echo "US15" > /proc/acpi/wakeup
#fi

exit 0
Save the file !

To test if you can wakeup from S3 (Standby) plug in your remote uncomment only the entry for USB0, reboot and then send the Zotac to Standby. If the Zotac is not waking up when you press a key on your remote, then comment out USB0 entries in /etc/rc.local and try it with the next entry.
I think one port must work !
For me it works for a Hauppauge MCE remote with (only) USB0 uncommented and with a X10 Remote (only) uncommented US15.

Hope that works for you !

spocky184

PS: That works only for waking the Zotac out of S3, not if the Zotac is completely powered down ! You can leave all settings in the BIOS as they are (Optimized Defaults) !!!
find quote
FishOil Offline
Posting Freak
Posts: 838
Joined: May 2009
Reputation: 8
Post: #12
mr.sparkle Wrote:just curious,

how many seconds is it taking people for their mags to boot into xbmc (post beep sound to xbmc main menu)?

i'm running karmic/xbmc 9.11/190.53 driver

i did a few tweaks (disabled the splash screens, concurrency=shell, timeout=0, etc..) but it still takes north of 30 seconds for me

i'm also automounting a nas that needs to spin up the drives so i'm thinking that's the bottleneck?

18 seconds from ZOTAC screen to XBMC Home screen.
(This post was last modified: 2011-04-26 10:05 by FishOil.)
find quote
roberto99 Offline
Junior Member
Posts: 42
Joined: Dec 2009
Reputation: 0
Post: #13
spocky184 Wrote:@mcarthurc
@wahooka

The only way that works for me is this way:

start a terminal and type:
Code:
cat /proc/acpi/wakeup

Only interesting settings are the folllowing (all USB Ports):



So you see, all Ports are disabled by default.

To enable them open the file /etc/rc.local
Code:
sudo gedit /etc/rc.local

put the following lines before the exit 0 entry

Save the file !

To test if you can wakeup from S3 (Standby) plug in your remote uncomment only the entry for USB0, reboot and then send the Zotac to Standby. If the Zotac is not waking up when you press a key on your remote, then comment out USB0 entries in /etc/rc.local and try it with the next entry.
I think one port must work !
For me it works for a Hauppauge MCE remote with (only) USB0 uncommented and with a X10 Remote (only) uncommented US15.

Hope that works for you !

spocky184

PS: That works only for waking the Zotac out of S3, not if the Zotac is completely powered down ! You can leave all settings in the BIOS as they are (Optimized Defaults) !!!


I hae tried this but i only have "suspend and hybernate", not standby to choose in xbmc. anyway i tried all combinations and the only thins working some how is when sending to "hybernation". The problem is that it wakes up by it self just after hybernating. maybe i misunderstood something. What cold i be doing wrong? my ir reciver is from hauppauge, i am using a logitech harmony one
by the way, does anybody know how to do a "right-click" from a harmony one remote?
Thanks in advance
Roberto
find quote
FishOil Offline
Posting Freak
Posts: 838
Joined: May 2009
Reputation: 8
Post: #14
roberto99 Wrote:The problem is that it wakes up by it self just after hybernating. maybe i misunderstood something. What cold i be doing wrong?
Roberto

http://wiki.xbmc.org/index.php?title=Ubu...end_/_Wake

Disable Usbcore Autosuspend

Add a boot option to grub to disable the usbcore autosuspend.

This bug exhibits itself as immediately waking after suspension.

Edit /etc/default/grub and add usbcore.autosuspend=-1 to GRUB_CMDLINE_LINUX_DEFAULT.

Example:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash xbmc=autostart,noredir usbcore.autosuspend=-1"

Update grub:

sudo update-grub
(This post was last modified: 2011-04-26 10:14 by FishOil.)
find quote
roberto99 Offline
Junior Member
Posts: 42
Joined: Dec 2009
Reputation: 0
Post: #15
Thanks for your help. I tried your guideline and also al the guidelines of the Ubuntu Suspend / Wake Wiki but I am not getting anywhere. Still from "suspend" it will never restart and from "hibernate" it comes back up by itself. But this is also the first point I would like to understand: do I have to user suspend or hibernate? Because if it is hibernate, then what is not working for me (bios are set to optimal defaults) is disable the usbcore autosuspend. And if it is suspend, then nothing is working.
Thanks in advance
Roberto
find quote
gabbott Offline
Team-XBMC Member
Posts: 1,547
Joined: Jul 2007
Reputation: 26
Post: #16
mcarthurc Wrote:I cannot seem to get my USB IR Receiver to wake up the Zotac MAG, nor any other USB device (mouse, keyboard). From what I can tell, the USB are not powered.

Has anyone else got this working properly, and if so can you walk me through any steps you took?

You try this?

http://wiki.xbmc.org/index.php?title=Ubu...end_/_Wake

Edit: nevermind the link was already posted.
find quote
plum7500 Offline
Junior Member
Posts: 5
Joined: Aug 2010
Reputation: 0
Post: #17
Looks like we have to wait until a patch is applied.

http://forum.xbmc.org/showthread.php?tid=76944&page=4

I have version 2.6.32. You can check your kernel version by doing:

sudo uname -r -v
find quote
krijeck Offline
Senior Member
Posts: 138
Joined: Aug 2009
Reputation: 0
Location: Vienna
Thumbs Up    Post: #18
plum7500 Wrote:Looks like we have to wait until a patch is applied.

http://forum.xbmc.org/showthread.php?tid=76944&page=4

I have version 2.6.32. You can check your kernel version by doing:

sudo uname -r -v


Hello!

I have Kernel Verision 2.6.32-26-generic with XBMC-Live 10.0 Dharma r35648 running and the wake on USB works with the above description! I use the Suspend Method. Works great! Nod
thanks

XBMCbuntu 13.0 ALPHA2 Git:194c408 (compiled Apr 1 2013)
ZOTAC MAGHD-ND01 @2GHz - 40GB SSD - LG 32LH4000 - 6TB USBDrive - Hama MCE Remote
OpenELEC
RaspberryPi - 4GB SD - USB DVB-T - for LiveTV streaming
XBMC 12.2 Git:20130502 (compiled May 2 2013)
MacBook Pro Late 2011 - 2x500GB HDD - OSX 10.8.2 - for testing AddOns
find quote
exoscoriae Offline
Senior Member
Posts: 120
Joined: Dec 2012
Reputation: 0
Post: #19
excellent guide. one question - does ubuntu install all the drivers for the machine itself? I notice there is no step for acquiring drivers, and there are no linux drivers on the zotac website for this particular machine. Never having installed linux before, I'm not sure if that is common or not.

edit: After install, when it rebooted I get a black screen with a mouse cursor. If I move it around enough a side bar (left) appears with some icons, but I can't seem to click any of them, and it repeatedly blinks.... Something went very wrong. Trying a second install now...
(This post was last modified: 2013-02-01 20:35 by exoscoriae.)
find quote
Post Reply