Kodi Community Forum
Linux ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Hardware (https://forum.kodi.tv/forumdisplay.php?fid=112)
+--- Thread: Linux ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21] (/showthread.php?tid=194362)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.17 - 2014/08/22] - JonSnow88 - 2014-08-26

(2014-08-25, 12:34)Matt Devo Wrote:
(2014-08-25, 05:27)jebise Wrote: Question regarding apps like netflix, I know this can't be run via OpenELEC but if one is to dualboot ChromeOS and OpenELEC will apps like Netflix work still in ChromeOS?
Second Question, is it possible to replace ChromeOS with a Windows installation? Ideally I would like to install Windows 8 and then XBMC, this would provide the all in one solution I'm looking for.
Everything on ChromeOS works normally in a dual boot setup, including Netflix.

Windows 8 will technically work, but is not without its issues. But really, if you want to run Windows, a NUC or Brix is a better option

NCU is to expensive and haven't found a place that sell's the Brix in Canada but again a bit expensive. What sort of issues do you think I will run into? I have read people have gotten the audio and GPU drives to work, if the NIC and USB3 works then I'm sold. Will try when I get the ChromeBox, any pointers on how to install?


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.17 - 2014/08/22] - wallstreet1 - 2014-08-26

(2014-08-25, 22:27)dchabby Wrote: I seem to have a problem when putting the chromebox to sleep when using the standalone openelec.

when it wakes I do not get any audio and have to reboot.

anyone else with this problem ? is there a solution ?

Yes, I have the same problem and posted about it here:
http://openelec.tv/forum/68-audio/72512-no-sound-after-resume-from-sleep-asus-chromebox


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.17 - 2014/08/22] - jjslegacy - 2014-08-26

Same problem here with a Denon receiver - I just have my roomie remote setup to reboot once my other equipment are powered up - not ideal but works. Would much rather have a real fix

I saw this in the xbmc.log after my openeelec setup was on and I turned on my Denon (yes I know wrong order):

22:11:11 T:140261836810048 ERROR: WinSystemX11::RefreshWindow - failed to query xrandr


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.17 - 2014/08/22] - Matt Devo - 2014-08-26

(2014-08-25, 20:19)mstinaff Wrote: Thanks Matt Devo! I've followed this post and have gotten my HP chromebox to boot linux distros.

However I do have another OS (QNX) that I would like to try installing on the box but this OS doesn't support the Lynx Point SATA controller. Is there a way for coreboot to put the SATA controller in legacy (IDE emulation) mode? I've had good luck doing that on other full blown systems and getting QNX to run.

This is my first time working with coreboot and from my googling I can't seem to find anything directly related to the chromebox/lynx point/legacy ata

Thanks again!

If there were, if would need to be compiled at the firmware level, and that's not something I'm really interested in trying to do. You're welcome to use my source/build scripts on github as a starting point though.

(2014-08-26, 01:45)jebise Wrote: NUC is to expensive and haven't found a place that sell's the Brix in Canada but again a bit expensive. What sort of issues do you think I will run into? I have read people have gotten the audio and GPU drives to work, if the NIC and USB3 works then I'm sold. Will try when I get the ChromeBox, any pointers on how to install?

I haven't spent enough time using it myself, but installation would be the same as any other standalone setup - update the firmware, boot from USB install media. Just load the audio/video/chipset drivers for the Haswell Core i3 NUC after install.

(2014-08-25, 22:27)dchabby Wrote: I seem to have a problem when putting the chromebox to sleep when using the standalone openelec.

when it wakes I do not get any audio and have to reboot.

anyone else with this problem ? is there a solution ?
(2014-08-26, 01:45)wallstreet1 Wrote: Yes, I have the same problem and posted about it here:
http://openelec.tv/forum/68-audio/72512-no-sound-after-resume-from-sleep-asus-chromebox
(2014-08-26, 03:58)jjslegacy Wrote: Same problem here with a Denon receiver - I just have my roomie remote setup to reboot once my other equipment are powered up - not ideal but works. Would much rather have a real fix

I saw this in the xbmc.log after my openeelec setup was on and I turned on my Denon (yes I know wrong order):

22:11:11 T:140261836810048 ERROR: WinSystemX11::RefreshWindow - failed to query xrandr

are you using the autostart script fix as described in the wiki?


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.17 - 2014/08/22] - jjslegacy - 2014-08-26

Is the autostart.sh run on resume? I thought that was for boot up?


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.17 - 2014/08/22] - Matt Devo - 2014-08-26

(2014-08-26, 05:45)jjslegacy Wrote: Is the autostart.sh run on resume? I thought that was for boot up?

it is, but it forces audio output regardless of handshaking status, which is the issue on resume.


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.17 - 2014/08/22] - jjslegacy - 2014-08-26

I will try again but my issue lately seems to be the type of audio output but will do more testing.


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.17 - 2014/08/22] - Matt Devo - 2014-08-26

(2014-08-26, 06:05)jjslegacy Wrote: I will try again but my issue lately seems to be the type of audio output but will do more testing.

sorry man, HDMI handshaking is a black art, and I don't even have a HDMI receiver here to test with. I know there are products which connect between device and TV/AVR that help, but not cheap IIRC


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.17 - 2014/08/22] - sgbg - 2014-08-26

Hi Matt, just got my HP Chromebox the Weekend followed your tutorial and got Openelec up and running in about Ten mins and the thing boots in seconds well happy! - respect from the UK for all your hard work mate....


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.17 - 2014/08/22] - jjslegacy - 2014-08-26

(2014-08-26, 06:07)Matt Devo Wrote:
(2014-08-26, 06:05)jjslegacy Wrote: I will try again but my issue lately seems to be the type of audio output but will do more testing.

sorry man, HDMI handshaking is a black art, and I don't even have a HDMI receiver here to test with. I know there are products which connect between device and TV/AVR that help, but not cheap IIRC


No worries Matt - it's somewhat puzzling at this point as I can get it to have audio when it wakes but it doesn't seem the ability to passthrough HD audio unless I reboot. Halfway there.


At the moment I just have it reboot when I start all the components in the theater using my roomie remote - quick and dirty and takes a few seconds so I never really notice


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.17 - 2014/08/22] - jjslegacy - 2014-08-26

Doing some more testing.

When the machine wakes up before the receiver and I check the eld\#0.0 file it has a sad_count of 0 and no rates etc.

Running
xrandr -display :0 --output HDMI1 --off
and
xrandr -display :0 --output HDMI1 --auto

fixes things with the Denon on but I have yet to get any script to run after a resume although it seems it use to be possible.



*edit

I think I have it working now. I was following an old resume method but it seems proper one is:
http://wiki.openelec.tv/index.php/Creating_Suspend_and_Resume_Scripts

So what I do is run xrandr -display :0 --output HDMI1 --off then sleep for 25 seconds knowing my receiver will be on and ready before that since it's all automated with roomie then run xrandr -display :0 --output HDMI1 --auto and it seems to be working. Will have to keep testing.



File:
Location: /storage/.config/sleep.d
Name: 01-reviveaudio.power

Contents:
#!/bin/sh
case "$1" in
pre)
echo nothing
;;
post)
xrandr -display :0 --output HDMI1 --off
sleep 25
xrandr -display :0 --output HDMI1 --auto
;;
esac

Now this all assumes your receiver will be turned on in 25 seconds. I suppose there is some logic I could come up with to have it check but not sure what yet.


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.17 - 2014/08/22] - furii - 2014-08-26

(2014-08-26, 19:58)jjslegacy Wrote: Now this all assumes your receiver will be turned on in 25 seconds. I suppose there is some logic I could come up with to have it check but not sure what yet.

if your avr is networked you could do something similar to this: http://wiki.openelec.tv/index.php/Mounting_network_shares#Example_5:_Advanced


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.17 - 2014/08/22] - jjslegacy - 2014-08-26

(2014-08-26, 21:23)furii Wrote:
(2014-08-26, 19:58)jjslegacy Wrote: Now this all assumes your receiver will be turned on in 25 seconds. I suppose there is some logic I could come up with to have it check but not sure what yet.

if your avr is networked you could do something similar to this: http://wiki.openelec.tv/index.php/Mounting_network_shares#Example_5:_Advanced



It is but it's always pingable as the network is always ON so I can turn it on remotely etc. Good thought though!


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.17 - 2014/08/22] - kazmifar - 2014-08-26

Hi Matt,

Is there a way to boot an OS from a USB hard drive? I'm thinking Windows 8.1.


RE: Asus/HP ChromeBox EZ Setup (OpenELEC or Ubuntu+XMBC) [v2.17 - 2014/08/22] - Matt Devo - 2014-08-27

(2014-08-26, 23:33)kazmifar Wrote: Hi Matt,

Is there a way to boot an OS from a USB hard drive? I'm thinking Windows 8.1.

USB flash drives and USB hard drives are the same from a booting point of view, so nothing special needs to be done there.

I'm not sure anyone has Windows 8.1 running completely/properly on a ChromeBox. You'll definitely need to load GPU/audio drivers, but you're pretty much on your own after that. Feel free to start a separate thread however Smile