Kodi Community Forum

Full Version: ChromeBox Kodi E-Z Setup Script (LibreELEC/Linux+Kodi) [2017/02/21]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Kodibuntu audio works fine out of the box. For desktop Audio you just install pulse audio, you then get audio in netflix steam ect.. But then lose hd audio or something like that. I don't use it so don't care.
No need for pulse, just configure the default alsa device to be hdmi, or wherever you want audio to go.
Pulse worked fine for me, with a bog-standard stock ubuntu install.

I went to the trouble of disabling pulse and using ALSA on my old HTPC back in the 2000s with XBMC, but it's really no longer necessary, pulse and Kodi play fine together now.
i have an ipad air with kodi on it and on the same network as my chromebox i am able to load up and start watching a show way faster and NO buffering and using the same process on my chromebox, it is buffering and has issues with buffering? i will say that this does not happen every single time but my chromebox is wired direct to router and my ipad air is wireless and i have had them running side by side and the ipad will not buffer on the same tv show with the same episode and my chromebox will. i thought that the chromebox was supposed to be pretty quick? is there a setting or tweak that i can install/adjust to help speed it up? the kind of buffering is similar to my rasberry pi and its a fraction of what the chromebox is (it should be able to buffering faster than a rasberry pi shouldn't it?). I am a noob with the chromebox and perhaps i am missing something very simple. i am running single OS (ubuntu 14.10). thanks for any help in advance
(2015-03-01, 04:58)rodalpho Wrote: [ -> ]Pulse worked fine for me, with a bog-standard stock ubuntu install.

I went to the trouble of disabling pulse and using ALSA on my old HTPC back in the 2000s with XBMC, but it's really no longer necessary, pulse and Kodi play fine together now.
As long as you don't want HD audio I guess.
I've struggled for a while to get cold booting working correctly with my setup:

Chromebox - Pulse Eight HDMI CEC adapter - Onkyo TX-SR309 - Panasonic TX-P50ST60B

Running standalone firmware with OpenElec 5.0.5.

If I cold boot with the TV and Receiver on I don't get anything on the TV except a blue screen from the Onkyo receiver.
CEC adapter is also set to turn on TV/Receiver when OE/Kodi starts (which works great when suspending)
If I connect the TV directly to the Chromebox I can get it to boot fine, switch HDMI cables to the receiver, reboot and everything boots fine and suspend works fine.

Would dumping the EDID and having OpenElec/Intel driver load from that rather than try and fail to get the receiver EDID on boot?

I did previously have some sort of boot script that would restart OE until the HDMI port was seen as active, is this what I need?

Or is my receiver just an issue when it comes to HDMI handshaking?
(2015-03-01, 00:06)nickr Wrote: [ -> ]No need for pulse, just configure the default alsa device to be hdmi, or wherever you want audio to go.

Steam doesn't seem to play very nice with Alsa. Plus installing pulse is a two command fix all. If you don't need hd audio.
@matt Devo

You hit the nail right on the head!

Quote:that sounds like shitty processing/frame interpolation from your TV -- turn of all of that crap. Google the model/series of your TV, and I'm sure one of the home theater sites will have a list of recommended settings for your model.
None of the options of my TV were enabled. I had it calibrated by a professional.
Only when playing a movie, the 24p SMOOTH FILM option shows it was set to MIN. This was the only option that was set.
I have now set it to MID and have even better results: no more the light flicker I always had when panning.

Quote:As far as Kodi settings, you probably want to select the option to change the refresh rate to match the video framerate (under Video/Playback - set to 'on start/stop'). The 2nd and 3rd screenshots on the wiki are from the video options accessible via the menu when a video is playing.
This completely solved my problem of a little jerkiness when panning. You are a hero!
It even worked for my Raspberry Pi, actually taking away one of the main reasons I forked out 150 euro for the Chromebox (the other reasons are still valid). Butter smooth!

Quote:Also, you didn't mention what OS/version you are running - that might have an impact as well.
I am running the latest OpenElec 5.0.5 on Linux 3.17.8, freshly installed yesterday.

Thank you so much!
(2015-03-01, 15:05)ant_thomas Wrote: [ -> ]I've struggled for a while to get cold booting working correctly with my setup:

Chromebox - Pulse Eight HDMI CEC adapter - Onkyo TX-SR309 - Panasonic TX-P50ST60B

Running standalone firmware with OpenElec 5.0.5.

If I cold boot with the TV and Receiver on I don't get anything on the TV except a blue screen from the Onkyo receiver.
CEC adapter is also set to turn on TV/Receiver when OE/Kodi starts (which works great when suspending)
If I connect the TV directly to the Chromebox I can get it to boot fine, switch HDMI cables to the receiver, reboot and everything boots fine and suspend works fine.

Would dumping the EDID and having OpenElec/Intel driver load from that rather than try and fail to get the receiver EDID on boot?

I did previously have some sort of boot script that would restart OE until the HDMI port was seen as active, is this what I need?

Or is my receiver just an issue when it comes to HDMI handshaking?

Did you check the part where it says something about power and CEC...http://kodi.wiki/view/Chromebox ?
(2015-02-23, 23:15)Matt Devo Wrote: [ -> ]
(2015-02-23, 16:33)pcdude Wrote: [ -> ]I recently switched my chromeboxes from dual-boot Ubuntu to standalone OpenELEC running OE 5.02. I am seeing the GPU hang problem on one of the boxes where the video freezes and the audio keeps playing. I've seen it happen twice now in the past 3 days. This is the same problem that I had in Ubuntu prior to upgrading the kernel. I thought this was fixed in OE. If not, is there a workaround outside of turning off hardware acceleration?

to quote fritsch, "logs or it didn't happen"

This has been happening about once a day of continuous playing. It seems like the GPU hang problem where the video will stop while the audio keeps playing. The box seems responsive otherwise, as I can hear the menu sounds when the remote buttons are pressed. I upgraded to OpenELEC 5.0.4 and it hung again this morning. Log file posted:
http://pastebin.com/7ageePRJ
(2015-03-01, 18:14)Rrrr Wrote: [ -> ]Did you check the part where it says something about power and CEC...http://kodi.wiki/view/Chromebox ?

Thanks!

I can't believe I hadn't seen that before. Powered USB hub for the CEC adapter and now it boots when the TV/AVR are turned on.

Now to get it to work when they're turned off.
Finally figured it out along with using a powered USB hub for the CEC adapter.

In autostart.sh I have added

Code:
echo -n "HDMI-A-1:edid.bin" > /sys/module/drm_kms_helper/parameters/edid_firmware

(
sleep 10
/bin/sh /storage/.config/hdmi-fix.sh
)&

/storage/.config/hdmi-fix.sh being:

Code:
#!/bin/sh

enabled="`cat /sys/class/drm/card0-HDMI-A-1/enabled`"

if [ "$enabled" = "disabled" ];
then
xrandr -display :0 --output HDMI1 --auto
sleep 1
systemctl restart xbmc
else
:
fi

There's probably a better way to do this (and I'd love to know!) but it seems to work for me from a cold boot with TV/AVR off.
(2015-03-01, 18:17)pcdude Wrote: [ -> ]
(2015-02-23, 23:15)Matt Devo Wrote: [ -> ]to quote fritsch, "logs or it didn't happen"

This has been happening about once a day of continuous playing. It seems like the GPU hang problem where the video will stop while the audio keeps playing. The box seems responsive otherwise, as I can hear the menu sounds when the remote buttons are pressed. I upgraded to OpenELEC 5.0.4 and it hung again this morning. Log file posted:
http://pastebin.com/7ageePRJ

that log is from the playback of an xvid file (software decoding), and doesn't show any sort of video/GPU hang. Additionally, would need a kernel log as well -- both from when it happens, not after a reboot
(2015-03-01, 21:59)Matt Devo Wrote: [ -> ]that log is from the playback of an xvid file (software decoding), and doesn't show any sort of video/GPU hang. Additionally, would need a kernel log as well -- both from when it happens, not after a reboot
The log was taken from the kodi.old.log file, which should have been the log when the problem occurred, not after reboot. How do you make a kernel log on OpenELEC?

When I experienced the GPU hangs on Ubuntu, I completely fixed it by updating the kernel. It ran for weeks without a hang. The symptoms were very similar. The hang would occur playing the same type of files. At this point I'm thinking about loading KodiBuntu with an updated kernel and see how that goes. I assume that the PulseAudio problems I had on Ubuntu will not be a problem on Kodibuntu.
(2015-03-02, 00:37)pcdude Wrote: [ -> ]The log was taken from the kodi.old.log file, which should have been the log when the problem occurred, not after reboot. How do you make a kernel log on OpenELEC?

When I experienced the GPU hangs on Ubuntu, I completely fixed it by updating the kernel. It ran for weeks without a hang. The symptoms were very similar. The hang would occur playing the same type of files. At this point I'm thinking about loading KodiBuntu with an updated kernel and see how that goes. I assume that the PulseAudio problems I had on Ubuntu will not be a problem on Kodibuntu.

well, the log you provided didn't show the issue you described. Obviously, if this were a widespread issue like the GPU hang bug (which this is not -- the fixes from the updated kernel have been backported into OE), there would be more users posting about it. kernel log: dmesg | pastebinit

I don't know why you'd assume that Kodibuntu wouldn't have the same audio issues as "regular" Ubuntu; you're very much likely to.
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