[SOLVED] Broadcom BCM970015 mini-pcie crystal-hd card + VLC + YouTube

Hi, since my notebook isn't powerful enough to play HD content I bought said card for about 42€ (the 970012 is much cheaper but doesn't support certain codecs) and installed it. Got it to work with VLC and YouTube pretty straightforward. For those who might be interested in the details, here's the story:
Cloned the git repo from git.linuxtv.org/jarod/crystalhd.git
and compiled the 'driver' and the 'linux_lib' and manually copied the firmware blob to /usr/lib.
modprobe'd crystalhd.
Noticed: Compiling gives an error until you add an
#include <linux/delay.h>
in crystalhd_flea_ddr.c. Wonder why they offer it buggy like that oO' but whatever.
Cloned the vlc 2.1.0 repo from git.videolan.org/vlc.git
-> bootstrap, configure --enable-crystalhd (I don't know if that parm is actually required, but what gives :-p), make, make install.
Noticed here though that 'make install' actually will NOT correctly install it. A 'vlc --version' still shows the old one (1.1.13). So, copied the binary and created symlinks manually in /usr/bin.
After this, invoking vlc with
vlc --codec crystalhd
will enable crystal-hd fine, as confirmed by the vlc command-line output you see.
If it doesn't, see the debug forum thread I linked at the very end of this thread.
NOTE: In 1080 I had smooth playback that was interrupted by "lags" every couple seconds. Turning up disk cache and file cache solved that for me. (Could also try turning down post-processing and loop filter, but maybe that isn't actually related?)
About YouTube: It works fine, even 1080p (previously I couldn't even watch 720p). Full-screen mode is still a little bit jerky, but it's not the usual low-frame prob but some other odd sort of mini lags, well that's the hell of flash I guess.
Although the latest flash (11.1.102.55-1) supports crystalhd out of the box it won't be enabled until you edit /etc/adobe/mms.cfg so that it has:
EnableLinuxHWVideoDecode=1
OverrideGPUValidation=true
At first I was missing the GPU-line and it didn't accelerate.
A final word - note that the crystalhd thingy only works single-threaded, basically if you have a YouTube video running, all other subsequently opened youtube videos or anything you play in VLC will NOT get hardware-acceleration because crystalhd is already occupied by the first video. So you cannot switch "on the fly" between videos, you have to close it first, then open another one!
Also, when I loaded a new video file in VLC without closing the player first, I got a kernel panic :-p I didn't test though if that actually happens everytime. But it seems the driver could still require further improvements...
Edit: I haven't attempted yet to compile ffmpeg with crystal-hd support, and I'm not sure if there are benefits over the pure VLC-solution. Let me know.
Last edited by Jindur (2012-03-01 14:18:17)

Jindur wrote:
Also, when I loaded a new video file in VLC without closing the player first, I got a kernel panic :-p I didn't test though if that actually happens everytime. But it seems the driver could still require further improvements...
Edit: I haven't attempted yet to compile ffmpeg with crystal-hd support, and I'm not sure if there are benefits over the pure VLC-solution. Let me know.
Just a quick reply for the caches: got similar issues with CrystalHD and VLC, and busy fixing it. Turns out that the driver (latest version) misses a NULL pointer in DriverGetStatus(). Additionally, VLC still does something quirky while opening the driver, which doesn't occur with e.g. the latest XBMC, resulting in a resource exhaustion leading up to that driver issue. For the first one, here is a small patch (the raw, 'uncut' version):
--- ../../../crystalhd/driver/linux/crystalhd_cmds.c 2012-03-18 15:59:58.743995349 +0100
+++ crystalhd_cmds.c 2012-03-26 18:21:18.398150371 +0200
@@ -745,7 +745,7 @@
bool readTxOnly = false;
unsigned long irqflags;
- if (!ctx || !idata) {
+ if (!ctx || !idata || !(ctx->hw_ctx)) {
dev_err(chddev(), "%s: Invalid Arg\n", __func__);
return BC_STS_INV_ARG;
@@ -828,6 +828,8 @@
static BC_STATUS bc_cproc_reset_stats(struct crystalhd_cmd *ctx,
crystalhd_ioctl_data *idata)
+ if (!(ctx->hw_ctx)) {
+ return BC_STS_INV_ARG; }
crystalhd_hw_stats(ctx->hw_ctx, NULL);
return BC_STS_SUCCESS;
This still will produce a multitude of errors in VLC, which remain largely unfixed ; one option to make VLC behave a bit more nicely when the above error occurs is to add this patch to VLC's crystalhd.c in DecodeBlock():
if (BC_FUNC_PSYS(DtsGetDriverStatus)( p_sys->bcm_handle, &driver_stat) != BC_STS_SUCCESS )
p_dec->b_error=true;
That's all for now, if I find more info I will share it here as this seems the only relevant thread on CrystalHD I found thus far
edit 2012-03-29: the issue is actually in the closing/releasing of the crystalhd driver by VLC. Somehow the VLC player only releases the driver *after* the new playout has changed, and it does not seem like a race-condition. The problem no longer appears when I simply ignore this usage in "chd_dec_close()" in "driver/linux/crystalhd_lnx.c" in the latest CrystalHD Linux driver (comment the if block
if(uc->in_use)
). This is a bad workaround, but it does the trick a bit better -> real fix is of course letting VLC handle the opening/closing of the driver better...
Last edited by sander4 (2012-03-29 15:44:03)

Similar Messages

  • Express mini pci GSM/EDGE card

    Looking for an express mini pci card with GSM/EDGE AND 802.11 capability to replace the 802.11 card in my 3000 laptop. Looked at Sierra Wireless. Looks like their cards have GSM/EDGE but no 802.11.

    Ok, if we talk about the MBPs - is it possible to purchase GPS receiver on Express Card interface? And what kind would be best in order to avoid any compatibility issues?

  • How can I turn on the mini-PCI WiFi card on Satellite 1905-S301?

    greetz! I have installed an optional mini-PCI wireless LAN card into my Toshiba Satellite 1905-s301 notebook and turned on its power switch. MS WXP Pro SP2 recognized the hardware and installed its drivers - there is no cross or question mark next to the Atheros AR5001X+ Wireless Network Adapter in the Device Manager. However the Wireless Network Connection Manager is telling me there is no wireless adapter present. When hitting Fn+F8 a window pops up saying There is no build-in wireless LAN.
    What do I need to do to enable my optional wireless LAN mini-PCI card??? If possible, email your suggestions to my email, please!

    Hi
    You have to enable the WLan switch at the notebook side!!!
    Additional select the WLan card properties and check the Advanced tab.
    There should be an option called Radio on/off. You have to set it to on.
    greetings

  • X121e, other uses for WWAN mini PCIe slot?

    Does anyone know whether the mini PCIe slot in the X121e that the optional WWAN card goes in can be used for other cards?
    I'm aware of the whitelist, which had been suggested may only apply to wireless devices (e.g. WLAN and WWAN) - although I'm not sure whether that's certain (i.e. doesn't apply for non-wireless devices).
    I've heard some people have tried mSATA devices in this slot with no success (which isn't suprising as whilst mini PCIe is physically compatible with mSATA it isn't electrically, and so you need mSATA support in the hardware).  However I've been wondering about mini PCIe SSD cards and whether they would work.  I've heard that they're not brilliant when compared to mSATA devices - however I can't afford to get a large SSD for this machine, and in general, people don't need to store all their MP3/videos on SSD, as the best benefit comes with the OS and applications being stored on the SSD, with user data being fine on an HDD.  My using a mini PCIe SSD, I could potentially put the OS etc onto a cheaper/smaller SSD, with the hard drive for 'data'.
    Has anyone tried this, or any other non-wireless mini PCIe devices in the X121e?
    Thanks

      Might be of interest to you that I tried a half mini pcie micro sd card reader in my X301.  It would allow 64gb if it worked.  However I got an error message on boot up - can't remember exactly what it was.  Other than that the only other option was the intel turbo memory which was of little benefit to me.

  • G500 half mini PCIE ssd??

    Hey Lenovo Community
     I recently purchased a new G500 i5 3230m+radeon 8750m on the 30th December, yesterday I added an extra 4gb 1600 ram
    and saw a that there is a half mini PCIE wireless LAN card, I can sacrifice that and put a half mini PCIE ssd, will it work or do I need to do something in the BIOS? That is my main concern.
    Also, what would I need to prepare before replacing stock HDD with SSD 2.5'? Do I need to clone this drive or I should just make a recovery DVD and pop it in once I installed the SSD 2.5'? Will everything install smoothly especially the OS (windows 8.1)?
    Thanks and kind regards,
    Jessie

    hi jcagara08,
    Welcome to Lenovo Community Forums!
    I believe this will work as the miniPCIE in your system supports Data signaling for both WLAN and SSD.
    It should be detected right away once rebooted.
    Replacing HDD with SSD.
       If your Operating System is Above Windows 8, you wont have an option to create Recovery CD using the One key Recovery,
        I may suggest using Paragon Backup & Recovery 12 Home (free trial) and use the Migrate option (see this thread).
    Regards
    Solid Cruver
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • 1802 Error Message on installation of Broadcom Mini-PCI Wireless Card

    I am getting an 1802 error message on boot when I install the Broadcom Mini-PCI wireless card. I know it has something to do with some code IBM put into the BIOS or CMOS to check the cards for manufacturer or something like that. Is there anyway around this message or do I have to try and find an IBM mini-PCI wireless card for this machine?
    Solved!
    Go to Solution.

    All depends on how one defines success...
    To put it this way: A3x machines are very unpredictable and moody when it comes to these issues, and you're talking to someone who has owned over a hundred A31p ThinkPads, not counting A30/p and A31 units along the way. More than once I've faced a scenario where the card that worked "out of the box" in one machine required a hack in the next one...
    But to answer your question:
    Can it be done? Absolutely.
    Do I recommend it? Absolutely not.
    IBM-issued (with a proper FRU number) Intel 2200BG should work in your machine with no hack. Some people have reported this experience even with generic card of the same type.
    Hope this helps.
    Cheers,
    George
    In daily use: R60F, R500F, T61, T410
    Collecting dust: T60
    Enjoying retirement: A31p, T42p,
    Non-ThinkPads: Panasonic CF-31 & CF-52, HP 8760W
    Starting Thursday, 08/14/2014 I'll be away from the forums until further notice. Please do NOT send private messages since I won't be able to read them. Thank you.

  • Fitting a mini pci wifi card to a T21 HELP PLEASE! :D

    hello you lovely people
    I currently have USB2.0 functionality and wifi on my T21 courtesy of a dongle and power from the 5v mouse socket
    what i want to do is put a mini pci wifi card inside my T21 so i dont have a dongle sticking out like a sore thumb
    1. is this possible or is it only the T23 you can do this too?
    2. can anyone show me the specific card and aerial i would need
    i cant find any help on the net for the T21 in particular
    hoping someone here might shed some light on this
    thanks for any help or pointers you can give
    D
    T42 - T21 - Tecra 8200 all xp

    Your best bet would be to find a complete lid with integrated wireless from a T23, and add an internal card, Broadcom 4306 or 4309 (b/g and a/b/g respectively) have been proven to work well in these machines.
    Hope this helps.
    Cheers,
    George
    In daily use: R60F, R500F, T61, T410
    Collecting dust: T60
    Enjoying retirement: A31p, T42p,
    Non-ThinkPads: Panasonic CF-31 & CF-52, HP 8760W
    Starting Thursday, 08/14/2014 I'll be away from the forums until further notice. Please do NOT send private messages since I won't be able to read them. Thank you.

  • Satellite 5200-903: Mini PCI Card doesn`t work

    Hello,
    I am a user of an:
    Satellite 5200-903: P4-M 2.2/256+256 DDR/60GB/15T SXGA+/DVD-R-RW/nV FX 5600/cPad/WIFI ready/XP
    My computer is equipped with an Toshiba Wirless lan Mini PCI Card.
    I installed the card a few years ago - everything worked wonderfull.
    At the beginning of 2006 I installed a new operating system (XP Pro + SP1, same system as before) because it was necessary.
    I installed all driver for the W-Lan Card, obviously the card worked in the correct way (no driver incompatibility or other problems).
    But, and thats the reason of this topic here. It isn`t possible to connect my card to any Hot Spot. I tried it with 2 different access points, but the result is the same. "No connection Point found".
    Has anyone any idea what to do or in which direction I could look for the failure? Is there maybe any special Software necessary (I couldn`t remember, that in my last installation I had needed special driver or software)
    If further informations are necessary, please inform myself.
    (sorry for the terrible english, but it isnt my first language.)
    THX for your help

    Hi,
    thx for the hints. But unfortunately none of these solved my problem.
    1. I checked my device Manager, it`s shown a Toshiba Wireless LAN Mini Pci Card
    2. The device is activated, with no problems
    3. My wireless activation switch on the left notebook side is activated (led lights yellow)
    4. Pushing the Fn+F8 Button results nothing
    (wenn i press the combination during the Notebook switch is off - i got the message "wireless connection is deactivated, please activate")
    What have to happen, when pushing the Fn+F8 Button during the wireless switch is activated? Is there any message on the screen?
    Concerning the installed driver, how could I check what type of card is installed in my notebook. I know, that there a two types of driver and card existing, toshiba and atheros.
    But, if the installed driver causes no problems I guess the right driver is installed.
    Thx for any further Idea...
    C.

  • Recommend a mini PCI card

    We are looking for a good mini pci (not pcie) card that supports ccx4 (Cisco Compatible Extensions version 4 [added to improve searchability]) and has good client software. Our environment requires use of eap-tls with machine certificates, so ccx4 is required to get cckm to work properly. Has anybody found a good solution for this?

    I like the Dell/Broadcom 1370/1470 mini-PCI and they are CCX4. We have many Intel 2100/2200/2915 and constantly have roaming issues with them. In roaming tests using WPA2-AES and PEAP, the Broadcom was the most consistent followed closely by the Cisco CB21 PCMCIA. The Intel firmware tends to "stick" to the AP and thus impacts roaming even with the roaming aggressiveness tuned. Also in a driver only install with XP managing the PEAP connection, Broadcom and Cisco advertises CCX4, while the Intel requires the use of their client for CCX. Our wireless environment is 4404's running 3.2 and 4.0 with 1230 and 1242.

  • Startup gets 'Network cable unplugged' on mini-PCI wireless card

    I recently installed a Netgear DG834GT wireless router and now have an intermittent problem connecting my Tecra 9100 to it. If the 9100 has been shutdown for a while (like overnight), when I restart I always get 'Network cable unplugged' for the wireless connection. Rebooting a number of times (anything from 3 upwards) I eventually get connected to the router and all then works fine for hours. Even a quick restart at this point (i.e. once the wireless card has connected) does not cause a problem but as soon as I leave the machine shutdown for a length of time it fails again at reboot.
    There are no errors in the Event log.
    I am using the built in mini-PCI wireless card and have already upgraded to the latest driver.
    Any ideas gratefully recieved, at the moment each morning is a 20-30 minute frustration of rebooting trying to get my connection working.
    (Running Win2K Professional)

    Checking other boards for help (Netgear etc.) it seems that the 'Network cable unplugged' is a common message when wireless connectivity is failing. However, to prove the point, I have disabled the other LAN card (for which I was also getting 'network cable unplugged' but as expected since it was). I still get the same issue with the wireless card, although now the reboots are slightly more predictable - it normally seems to succeed on the third reboot. I guess disabling the other card has changed the startup timing slightly and in that way made things slightly better.
    Again, any other suggestions gratefully received. As this seems to be a timing issue at startup, I am suspicious that one of the other things that runs at that time is causing the problem.

  • Startup gets 'Network cable unplugged' on mini-PCI wireless card (again)

    Reposting as previous topic has been locked although has not been resolved. Original post below, please see previous post for more details
    I recently installed a Netgear DG834GT wireless router and now have an intermittent problem connecting my Tecra 9100 to it. If the 9100 has been shutdown for a while (like overnight), when I restart I always get 'Network cable unplugged' for the wireless connection. Rebooting a number of times (anything from 3 upwards) I eventually get connected to the router and all then works fine for hours. Even a quick restart at this point (i.e. once the wireless card has connected) does not cause a problem but as soon as I leave the machine shutdown for a length of time it fails again at reboot.
    There are no errors in the Event log.
    I am using the built in mini-PCI wireless card and have already upgraded to the latest driver.
    Any ideas gratefully recieved, at the moment each morning is a 20-30 minute frustration of rebooting trying to get my connection working.
    (Running Win2K Professional)

    More info : I have found that this is time related rather than related to the number of reboots. It always fails on the first reboot after being shut down for a period of time. At this point, however long I wait the connection never comes up. However, if I wait a few minutes and then reboot, the second reboot will always successfully establish the connection.
    On this basis, the problem has become slightly less annoying as I have a workaround - boot once, wait a few minutes and reboot. That being said, any information on how I can isolate this further (e.g. tracing what is running at startup) would be gratefully recieved.

  • Can Any one please help me find a compatible Wireless N MINI PCI Express Card for my HP G50-133us?

    I have a HP G50-133US notebook, it currently has a Atheros AR5007 802.11b/g WiFi Adapter. I am looking to upgrade it to a B/G/NWiFi Card. I can find plenty of Mini Pci-Express Wireless N cards but not sure if they are compatible. Does anyone know if as long as it is Mini PCI-Express and have the correct drivers this would work? Or does anyone know if a known working upgrade that would work? Any help would be appreciated!! Thank you!.

    You MUST get an HP branded wi-fi card AND it has to be on the "white list" for your computer in the BIOS or the card will block the computer from booting with an error message. Here is a link to your Manual:
    Manual
    Page 19 starts the list of known compatible wifi cards.
    You can search eBay by part number for the card and likely find one at a decent price.

  • How To Install mini-pci wireless card in 1955-S805 ?

    I'm trying to install a new mini-pci wireless card in my Satellite 1955-S805. I was able to pry off the black shiny strip above the keyboard, and unscrew the two screws holding down the keyboard. But under the keyboard is a silver metal plate. There doesn't appear to be a way to get past that. Everything I've read seems to say that the mini-pci card goes under the keyboard.
    Does anyone know how to install a mini-pci card in these 1955-S805 notebooks? Or does anyone have a tech manual on this model?
    Thanks,
    Pat

    Hi Pat
    I am not sure but you have an US model. I have 1900-703 notebook. It is a European model and I had no problem to install mini-pci wireless card.
    Your unit has also wireless keyboard. Am I right?
    If you want to built in wireless card you must remove the keyboard from notebook using keyboard releases on the left and right side of your unit. After that you can see small cover on the place of keyboard and this cover is fixed with one screw. Under this small cover there is wireless card slot.

  • A20p, got a mini-pci wireless card working on it

    I had thought this impossible. Everywhere i'd looked i couldn't find one person who'd got this working.
    Today i've just done it. I had an SMC wireless router which had failed, it kept powering itself off all of the time so i'd bought a new router. Before i chucked the old router out i took it apart to have a look to see if i could find what had failed. To my surprise it had a mini-pci wireless card mounted in a slot on the mainboard (to give it wireless functionality i guess). I got the wireless card out and left the antenna leads still connected to the antennas on the back panel of the router.
    Then i removed the mini-ethernet/56K modem card (IBM FRU-08K3125) from the A20p mini-pci slot and put the mini-pci wireless card in it's place. For the time being i left the antenna wires hanging out of the bottom with the router back panel and antenna still attached.
    I hadn't got a clue who the manufacturer of the wireless card was but what i did have was the chipset number "TNETW1130GVF" which i obviously got off the chip on the mini-pci card. After a quick search i found some drivers that should be compatible with the chipset:-
    http://www.safecom.cn/code/support/DMF.aspx?pid=316#
    I've also tried these (actually the same thing):-
    http://www.wireless-driver.com/download/other/2007-6-26/TI-TNETW1130GVF-Chipset-Driver.htm
    I loaded them up and it worked!!!!!!!!!!!!!! Both driver downloads work!!!!
    Now i've just got to find some internal antenna and wire them into the case!
    Edit: i forgot to mention that the card is being recognised as a Texas instruments 802.11g MiniPCI card in Windows Device Manager (which is no surprise as it's a Texas Instruments Chipset). Also i'm on WinXP Pro SP3.
    Message Edited by snowbum on 03-08-2009 12:48 PM
    Message Edited by snowbum on 03-08-2009 01:12 PM

    Who would have known? I wouldn't have expected a router to use a mini-PCI card.
    Message Edited by ortegaluis on 03-08-2009 12:32 PM
    \\ I do not respond to PM regarding individual tech support. Keep discussions in the forum for the benefit of others //

  • External antenna on mini PCI WiFi card

    Hello,
        The stock mini PCI WiFi card on the MEGA 865 has terrible range.  I can not connect to an access point beyond 20 feet.  Can an external antenna be added to the card?  Does someone sell a mini PCI WiFi with external antenna?  The new MEGA 865 PRO has an external antenna!!!!!  Where can I buy this 865 PRO WiFi card and antenna?  My PCI slot is filled and USB keys seem to have about the same range. 
         In another computer I have a D Link PCI card 802.11 a/b/g with external antenna with excellent signal at 100 feet.
    Thanks for your help!

    ahh ha! success...
    I got new Intel drivers for my wireless Mini-PCI card from the Intel site itself.
    It now is very stable...transferred more than 5gig at once without dropouts
    Only problem is that the speed is sacrificed a bit...i was getting slightly higher transfer rates with the original drivers(which came with the card).. now im getting max 2MByte/s(16Mbits/s) with these new drivers....also Windows can see the wireless network connection as "Status:Excellent"..so im pleased with the stability
    Can any1 explain how(even when 2 wireless-G devices are sitting next to each other) they can never reach 54MBit/s ??? So then 108MB/s must be an absolute load of crap ..and not even reach 54MBit/s properly
    I should be getting around 54MBit/s ..after all why say its 54MBit/s when its not ....grrrr

Maybe you are looking for

  • Zen V Plus recognized by device manager, but not by Media Explorer/Windows Media Pla

    Hi, I just got back from Best Buy after buying a Creative Zen V Plus. I installed everything from the CD and plugged in the player, but the Media Explorer doesn't recognize it (even after restarting PC). The Device Manager recognizes it but there's a

  • Where can I download Adobe Acrobat 9 pro, so I can install it using my SN from Adobe CS 4?

    Bought Adobe CS 4 on DVD few years ago and want to install the Adobe Acrobat 9 pro out of it now on my new Win8 Samsung Ativ Smart Tablet. -> My question: Where can I download Adobe Acrobat 9 pro, so I can install it using my SN from Adobe CS 4? Than

  • Trouble transferring events in upgrade to iphoto 11

    Hi: Please may I ask for some help with iphoto 11? I upgraded a couple of weeks ago and am generally happy with it (the project app is brilliant). Unfortunately I have noticed a problem with upgrading from a previous version of iphoto (I think 09): a

  • How to insert the data

    Hi, I have the following xml file, can some one please tell me how to insert this file cdata into the table in the below format There would be couple of <TRAN> tag where we will not have AMT Tag but we will have only RKEY Tag. <?xml version='1.0' enc

  • 101 GR/IR wrong values

    Dear all. PO rate: 159.00 [Not changed since PO creation] GR done in June having GR/IR = according to 162.64 In table MBEWH Year    Period      MAP 2009      01         159.00 2009      02         159.00 2009      03         162.64 For current period