{"action":"created","issue":{"url":"https://api.github.com/repos/ljalves/linux_media/issues/89","labels_url":"https://api.github.com/repos/ljalves/linux_media/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/ljalves/linux_media/issues/89/comments","events_url":"https://api.github.com/repos/ljalves/linux_media/issues/89/events","html_url":"https://github.com/ljalves/linux_media/issues/89","id":68757878,"number":89,"title":"Resume problems - TBS6280 - cxd2820r module?","user":{"login":"cotman","id":2264867,"avatar_url":"https://avatars.githubusercontent.com/u/2264867?v=3","gravatar_id":"","url":"https://api.github.com/users/cotman","html_url":"https://github.com/cotman","followers_url":"https://api.github.com/users/cotman/followers","following_url":"https://api.github.com/users/cotman/following{/other_user}","gists_url":"https://api.github.com/users/cotman/gists{/gist_id}","starred_url":"https://api.github.com/users/cotman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cotman/subscriptions","organizations_url":"https://api.github.com/users/cotman/orgs","repos_url":"https://api.github.com/users/cotman/repos","events_url":"https://api.github.com/users/cotman/events{/privacy}","received_events_url":"https://api.github.com/users/cotman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-15T18:38:08Z","updated_at":"2015-05-02T19:31:24Z","closed_at":"2015-05-02T19:31:24Z","body":"Hi,\r\n\r\nI'm using the latest cut of the drivers, but I'm having some issues with operation on resume.\r\n\r\nMy (newly installed) tvheadend Ubuntu Server 14.04.2 system has a TBS6981, HVR4000 and a TBS6280, although I'm only using the TBS6280, at the moment.\r\n\r\nThe drivers themselves seem to work perfectly after a fresh reboot - really impressed with performance.  However, I use S3 when inactive, and on resume the TBS6280 isn't working:\r\n\r\n    Apr 15 18:32:25 tv tvheadend[1016]: subscription: 023F: \"192.168.1.104 [ generic | XBMC Media Center ]\" subscribing on channel \"BBC ONE East E\", weight: 150, adapter: \"Sony CXD2820R : DVB-T #0\", network: \"Freeview\", mux: \"745.833MHz\", service: \"BBC ONE East E\", profile=\"htsp\", hostname=\"192.168.1.104\", username=\"generic\", client=\"XBMC Media Center\"\r\n    Apr 15 18:32:30 tv tvheadend[1016]: linuxdvb: Sony CXD2820R : DVB-T #0 - poll TIMEOUT\r\n \r\n...repeated.  The only thing that seems to get things working again is a reboot.\r\n\r\nNow - I do have a `sleep.d` custom script, and that currently has the following:\r\n\r\n    case \"$1\" in\r\n    suspend|hibernate)\r\n    service tvheadend stop\r\n    sleep 3\r\n    modprobe -r cx88_dvb cx88_alsa cx8800 cx88xx cx23885 saa716x_budget saa716x_core cx25840\r\n    ;;\r\n    resume|thaw)\r\n    modprobe cx88_dvb cx88_alsa cx23885 saa716x_budget\r\n    sleep 3\r\n    service tvheadend start\r\n    ;;\r\n    esac\r\n\r\nNow, from the error, I'm guessing it would be good to add the `cxd2820r` (and maybe `dvb_core` ? ) to that module removal list before sleep.\r\n\r\nHowever, I can't...\r\n\r\nWith the above modules removed, and tvheadend stopped, `lsmod` lists the following:\r\n\r\n    root@tv:~# lsmod | grep cxd2820\r\n    Module                  Size  Used by\r\n    cxd2820r               31562  -1 \r\n    dvb_core              126812  1 cxd2820r\r\n\r\nHowever, if I try and remove `cxd2820r`, I get this:\r\n\r\n    root@tv:~# rmmod cxd2820r \r\n    rmmod: ERROR: Module cxd2820r is in use\r\n\r\nBit stuck - as I can't see anything else using it.\r\nTrying to force the removal isn't any more successful:\r\n\r\n    root@tv:~# rmmod -f cxd2820r \r\n    rmmod: ERROR: ../libkmod/libkmod-module.c:769 kmod_module_remove_module() could not remove 'cxd2820r': Resource temporarily unavailable\r\n    rmmod: ERROR: could not remove module cxd2820r: Resource temporarily unavailable\r\n\r\nI can't see any modules that might be using it, and no processes running that might be doing the same.\r\n\r\nAny advice?\r\n\r\nThe drivers work really well in normal operation, post a cold boot, so this is the one thing stopping me switching this to be my live system..."},"comment":{"url":"https://api.github.com/repos/ljalves/linux_media/issues/comments/98390333","html_url":"https://github.com/ljalves/linux_media/issues/89#issuecomment-98390333","issue_url":"https://api.github.com/repos/ljalves/linux_media/issues/89","id":98390333,"user":{"login":"ljalves","id":1659543,"avatar_url":"https://avatars.githubusercontent.com/u/1659543?v=3","gravatar_id":"","url":"https://api.github.com/users/ljalves","html_url":"https://github.com/ljalves","followers_url":"https://api.github.com/users/ljalves/followers","following_url":"https://api.github.com/users/ljalves/following{/other_user}","gists_url":"https://api.github.com/users/ljalves/gists{/gist_id}","starred_url":"https://api.github.com/users/ljalves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljalves/subscriptions","organizations_url":"https://api.github.com/users/ljalves/orgs","repos_url":"https://api.github.com/users/ljalves/repos","events_url":"https://api.github.com/users/ljalves/events{/privacy}","received_events_url":"https://api.github.com/users/ljalves/received_events","type":"User","site_admin":false},"created_at":"2015-05-02T19:31:24Z","updated_at":"2015-05-02T19:31:24Z","body":"This kind of noise is welcome! We all learn from our mistakes. \r\nGlad you solved your issues.\r\nClosing."}}