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/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - Jpopgt - 2014-12-21

Hello again,Confused

I have followed the tutorial again on the first page and finished the setup and i still can't dual boot ChromeOS and OpenElec, when my machine boots up it is still on the 1 second boot option to boot into Chrome.

I must be missing something somewhere and can't figure out where i'm going wrong.

The only thing that i done different was remove the screw before i powered on the chromebox.....could this possibly be something to to with it?

Appreciate some help again.

cheers.


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - fritsch - 2014-12-21

(2014-12-21, 15:45)Sunflux Wrote:
(2014-12-21, 15:38)fritsch Wrote:
(2014-12-21, 15:34)Sunflux Wrote: Hmm, interesting. Taking a screenshot of a 1920x800 file being played, it's actually occupying 1920x808? Thus why the doubled lines every 100 pixels in Nearest Neighbor? Properties in debug log show:

07:37:26 T:140159228024576 INFO: ffmpeg[7F795CFF9700]: Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x800, SAR 1:1 DAR 12:5, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)

07:37:32 T:140158590506752 NOTICE: fps: 23.976024, pwidth: 1920, pheight: 800, dwidth: 1920, dheight: 800
07:37:32 T:140158590506752 DEBUG: OutputPicture - change configuration. 1920x800. framerate: 23.98. format: VAAPI_NV12
07:37:32 T:140158590506752 NOTICE: Display resolution ADJUST : HDMI1: 1920x1080 @ 23.98Hz (22) (weight: 0.000)

And yet a screen capture clearly shows the viewable window as 808 pixels high:

http://i59.tinypic.com/20i6hl5.png

That seems way too much to account for the PAR error.

07:37:10 T:140160032450432 INFO: ID:0x48 Name:1920x1080 Refresh:60.000000 Width:1920 Height:1080
07:37:10 T:140160032450432 INFO: Pixel Ratio: 1.000512

1920 / 1.000512 = 1919,017463059

Yeah, teach your TV to behave better. For the 808 that's not an issue. It is centered and the rest of the surface is black, but the 1919 introduces a ratio change, rescaling and so on. You need the patch I posted above.


...And I just figured out what's causing the 808 pixel issue. Disabling the 1% allowable aspect ratio error fixes the vertical scaling. So it's a MANDATORY 1% error - enforced if it can be, no matter what..

So to fix a 1 pixel horizontal scaling issue, I'm expected to accept an 8 pixel vertical scaling issue? If the file's 1050 pixels high, that'll be an 11 pixel error! Gee. I do wish your "rounding error" fix would be made mainstream, because the alternate fix is worse than the problem!

Any way to simply override the screen's PAR without a complicated EDID replacement?

Hehe :-) Most likely, haha. You could try to experiment with "DisplaySize" in xorg.conf

Quote:DisplaySize width height
This optional entry gives the width and height, in millimetres,
of the picture area of the monitor. If given this is used to
calculate the horizontal and vertical pitch (DPI) of the screen.

In OE create /storage/.config/xorg.conf with something like that:
Code:
Section "Device"
  Identifier  "Device0"
  Driver      "intel"
  VendorName  "INTEL Corporation"
  # a user reported, that this could cause high jumping fps in the menus when running on Ubuntu Raring
  # in that case set it to "uxa" instead
  Option "AccelMethod" "sna"
EndSection

Section "Screen"
  Identifier  "Screen0"
  Device      "Device0"
  Monitor     "HDMI1"
  DefaultDepth  24
  SubSection "Display"
    Depth       24
  EndSubSection
EndSection

Section "Monitor"
  Identifier  "HDMI1"
  HorizSync   14.0 - 70.0
  VertRefresh 24.0 - 62.0
  Option      "DPMS" "true"
  DisplaySize 999999 999999 # <- change that accordingly
EndSection

Section "Extensions"
  # fixes tearing
  Option      "Composite"           "Disable"
EndSection

Edit also make sure your output is HDMI1 if not, change it to HDMI0 or HDMI2. xrandr -q will tell.


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - Sunflux - 2014-12-21

(2014-12-21, 15:51)fritsch Wrote: Hehe :-) Most likely, haha. You could try to experiment with "DisplaySize" in xorg.conf

Quote:DisplaySize width height
This optional entry gives the width and height, in millimetres,
of the picture area of the monitor. If given this is used to
calculate the horizontal and vertical pitch (DPI) of the screen.

In OE create /storage/.config/xorg.conf with something like that:

Edit also make sure your output is HDMI1 if not, change it to HDMI0 or HDMI2. xrandr -q will tell.

Thanks for the suggestion... but it doesn't seem to work. I tried making it simply 1920 by 1080 mm... and I still see the same 1 pixel error. So I tried making it some funky aspect, and still no change. Seems like it ignores that setting entirely.


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - fritsch - 2014-12-21

Oki. Happy building from source then.


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - Meatwallet - 2014-12-21

Everything has been working great except for some freezing of some movies. After doing some reading it looks like it might be the Intel bug? Audio continues but the picture freezes and I can't do anything. I disabled hardware acceleration and everything seems to be OK for now. Should I keep the settings this way or is there something else I should be doing?


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - fritsch - 2014-12-21

OE RC3 will have that solved. So wait until that is released.


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - Rojo - 2014-12-21

(2014-12-20, 22:08)nickr Wrote: Read the openelec web page particularly the warnings about backing up etc

Download the latest openelec tar file.

Transfer to your chromebox and put it in the directory /storage/.update

Reboot

How do I find /storage/.update
Sorry for being such a noob


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - paintmecyanide - 2014-12-21

Posting here because this script is among the top Google results for Chromebox Ubuntu.

The current version does not enable i386 by default. As a result, a number of packages will not install, particularly pipelight - needed to get Amazon Prime Video, among other things, working. This triggers errors that don't make it apparent that the problem is related to the architecture. This can be fixed, post install, by running the commands shown below.

sudo dpkg --add-architecture i386
sudo apt-get update

You might also want to consider not hard coding the Ubuntu version to "latest," and making Kodi installation optional. I am likely not the only person using this script as a starter for a general purpose Ubuntu box. I manually switched to lts, and deleted out Kodi while troubleshooting this problem, but they obviously ended up being unrelated.


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - Matt Devo - 2014-12-21

(2014-12-21, 11:58)nolight Wrote: Hi, I recently installed dual boot Chrome OS/OpenELEC on Asus Chromebox with OpenELEC as default OS.

On my Sharp LCD TV LC-32M400M-BK (native resolution 1366x768) it is able to display the OpenELEC on boot up. Connection is direct HDMI.

On my Panasonic plasma TV TH42PV70H (native resolution 1024x768) it is showing up as if no signal. Tried both direct HDMI connection and HDMI connection through chromebox -> AVR -> TV.

Pls help on how I can fix the no display on Panasonic TV. Thanks.

I can only guess that for some reason it's not setting the proper output resolution on startup. That's going to require a bit of debugging, and is probably most easily dealth with on the OpenELEC IRC channel.

(2014-12-21, 14:45)toadleyb Wrote: I just purchased the Asus Celeron Chromebox as a gift for someone for Christmas. I have Ubuntu and ChromeOS setup as dual boot.

I have a Logitech keyboard and mouse that I am having major issues with. I have no problem with the keyboard as far as selecting Ctrl D or Ctrl L but once I am booted into ChromeOS or Ubuntu the mouse and keyboard become completely unresponsive. The keyboard will work sometimes in Ubuntu but the mouse is unusable. This same mouse and keyboard work fine on my Home Theater Computer in the same room in both Windows and Ubuntu.

Is it worth me buying another Mouse and Keyboard and trying it or could it be an issue with the Chromebox. I do not own a wired mouse or keyboard to try (Can you even buy them anymore?).

Any troubleshooting tips?

that's certainly not an issue I've seen before - what model keyboard/mouse? do they use a unifying receiver?

(2014-12-21, 15:50)Jpopgt Wrote: Hello again,Confused

I have followed the tutorial again on the first page and finished the setup and i still can't dual boot ChromeOS and OpenElec, when my machine boots up it is still on the 1 second boot option to boot into Chrome.

I must be missing something somewhere and can't figure out where i'm going wrong.

The only thing that i done different was remove the screw before i powered on the chromebox.....could this possibly be something to to with it?

Appreciate some help again.

cheers.

removing the screw first is fine, has nothing to do with anything. What exactly is your issue? does it not boot into OpenELEC when you press [CTRL-L] on the dev boot screen? If not, what happens? If you just want a longer delay, then use the script to set it as such.

(2014-12-21, 20:04)paintmecyanide Wrote: Posting here because this script is among the top Google results for Chromebox Ubuntu.

The current version does not enable i386 by default. As a result, a number of packages will not install, particularly pipelight - needed to get Amazon Prime Video, among other things, working. This triggers errors that don't make it apparent that the problem is related to the architecture. This can be fixed, post install, by running the commands shown below.

sudo dpkg --add-architecture i386
sudo apt-get update

You might also want to consider not hard coding the Ubuntu version to "latest," and making Kodi installation optional. I am likely not the only person using this script as a starter for a general purpose Ubuntu box. I manually switched to lts, and deleted out Kodi while troubleshooting this problem, but they obviously ended up being unrelated.

If you're using it as dedicated Ubuntu box, just install from a Ubuntu ISO on a USB stick (after installing the coreboot firmware).
If you want to dual boot but don't want Kodi or the latest release, then use Jay Lee's ChrUbuntu script.
I've added i386 to the build script - thanks for the heads up


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - paintmecyanide - 2014-12-21

(2014-12-21, 20:51)Matt Devo Wrote: If you're using it as dedicated Ubuntu box, just install from a Ubuntu ISO on a USB stick (after installing the coreboot firmware).
If you want to dual boot but don't want Kodi or the latest release, then use Jay Lee's ChrUbuntu script.
I've added i386 to the build script - thanks for the heads up

Much appreciated. I wasn't sure what fixes were built in, nor was I sure of how to make sure I partitioned correctly and didn't make my system, or at the very least ChromeOS unbootable. The Kodi option and latest vs lts option were just things I stumbled upon while trying to fix my i386 issue. I had installed default Ubuntu using the script when I bought the Chromebox, and decided to test out pipelight. I then decided to start from scratch with xubuntu for performance reasons, and right off the bat, pipelight wasn't installable.

The reason I didn't use the Chrubuntu script is because when I initially bought the ChromeBox I ran into a large number of errors, and the script hasn't been updated in a long time.


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - Matt Devo - 2014-12-21

(2014-12-21, 21:01)paintmecyanide Wrote: Much appreciated. I wasn't sure what fixes were built in, nor was I sure of how to make sure I partitioned correctly and didn't make my system, or at the very least ChromeOS unbootable. The Kodi option and latest vs lts option were just things I stumbled upon while trying to fix my i386 issue. I had installed default Ubuntu using the script when I bought the Chromebox, and decided to test out pipelight. I then decided to start from scratch with xubuntu for performance reasons, and right off the bat, pipelight wasn't installable.

The reason I didn't use the Chrubuntu script is because when I initially bought the ChromeBox I ran into a large number of errors, and the script hasn't been updated in a long time.

currently, the only fixes added by the script are the "tearfree" Intel driver option, and the disabling of the TPM via kernel boot parameters (later of which is only needed for a dual boot setup) -- both of which are also documented in the wiki

I suppose I could make the dual boot Ubuntu install more flexible, but it's a trade-off between trying to address the use cases of the majority of users vs making it as simple/non-interactive as possible.


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - emveepee - 2014-12-22

(2014-12-21, 17:26)fritsch Wrote: OE RC3 will have that solved. So wait until that is released.

The upgrade of OE RC3 worked great and I just watched a pvr recording after resetting back to OE Video default and all was good. Thanks for the great effort getting this working!

Martin


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - waterskier1018 - 2014-12-22

Looking for some help on initial setup issues.
New stuff for me: Synology DS213j, WD Red 3TB's, Asus Chromebox M004U. All hardwired.

Goal to store and stream photos and videos to TV via Chromebox. Music and DVR via OTA comes later.

Completed: Device Prep, OpenELEC, Kodi install.

Issue 1: When trying to add files / folders to Kodi, all it sees on the DS213j are the "photos", "videos", and "music" folders, not the ones I created. How can I get it so see these? I selected UPnP Devices in the browse for new share menu. Is this right? Or am I not able to make my own folders? THe Samsung DLNA smart TV didn't see my folders either. Can I have spaces in my folder names?

Issue 2: Using UPnP method above (to get to a few test files in the "photo" folder), it won't play (or even see) my movie files. Filetypes are mts and mov. It was able to see the picture filenames, but didn't pull them up. jpegs.

Issue 3: Logitech K400r wireless keyboard didn't seem to allow me to press ctrl L to boot to openelec. I had a hardwired USB one that did. Can you recommend a low cost keyboard that may work?

Issue 4: Upon boot up, I don't get the developer screen on the TV (via HDMI). Just the default screen for no picture. Not sure if this is significant, as long as I remember to hit crtl-L quickly...

Thanks in advance, hope I can get this going, as the interface looks nice for sure.


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.4 - 2014/12/10] - Matt Devo - 2014-12-22

(2014-12-22, 07:50)waterskier1018 Wrote: Looking for some help on initial setup issues.
New stuff for me: Synology DS213j, WD Red 3TB's, Asus Chromebox M004U. All hardwired.

Goal to store and stream photos and videos to TV via Chromebox. Music and DVR via OTA comes later.

Completed: Device Prep, OpenELEC, Kodi install.

Issue 1: When trying to add files / folders to Kodi, all it sees on the DS213j are the "photos", "videos", and "music" folders, not the ones I created. How can I get it so see these? I selected UPnP Devices in the browse for new share menu. Is this right? Or am I not able to make my own folders? THe Samsung DLNA smart TV didn't see my folders either. Can I have spaces in my folder names?

Issue 2: Using UPnP method above (to get to a few test files in the "photo" folder), it won't play (or even see) my movie files. Filetypes are mts and mov. It was able to see the picture filenames, but didn't pull them up. jpegs.

solution: mount the folders as windows network shares, not UPNP folders.
eg, for each section: Add Files-->Windows Network-->WORKGROUP-->Diskstation-->[folder name you created]

Quote:Issue 3: Logitech K400r wireless keyboard didn't seem to allow me to press ctrl L to boot to openelec. I had a hardwired USB one that did. Can you recommend a low cost keyboard that may work?

K400 is listed on wiki as non-working for dev boot screen; K360 is cheap and works well.

Quote:Issue 4: Upon boot up, I don't get the developer screen on the TV (via HDMI). Just the default screen for no picture. Not sure if this is significant, as long as I remember to hit crtl-L quickly...

Thanks in advance, hope I can get this going, as the interface looks nice for sure.

either your TV doesn't support 1024x768 as an input resolution, or can't sync quickly enough (depending on the delay you have set). No real way to mitigate this in a ChromeOS/dual boot setup as it's hardcoded in the stock firmware


RE: Asus/HP/Acer/Dell ChromeBox EZ Setup (OpenELEC/Linux+Kodi) [v3.5 - 2014/12/22] - Matt Devo - 2014-12-22

(2014-12-21, 20:04)paintmecyanide Wrote: Posting here because this script is among the top Google results for Chromebox Ubuntu.

The current version does not enable i386 by default. As a result, a number of packages will not install, particularly pipelight - needed to get Amazon Prime Video, among other things, working. This triggers errors that don't make it apparent that the problem is related to the architecture. This can be fixed, post install, by running the commands shown below.

sudo dpkg --add-architecture i386
sudo apt-get update

You might also want to consider not hard coding the Ubuntu version to "latest," and making Kodi installation optional. I am likely not the only person using this script as a starter for a general purpose Ubuntu box. I manually switched to lts, and deleted out Kodi while troubleshooting this problem, but they obviously ended up being unrelated.

script update v3.5 adds i386 package support, allows for selection of ubuntu version, makes XBMC/Kodi install optional (but defaults to Y)