{"action":"created","issue":{"url":"https://api.github.com/repos/jakeday/linux-surface/issues/204","repository_url":"https://api.github.com/repos/jakeday/linux-surface","labels_url":"https://api.github.com/repos/jakeday/linux-surface/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/jakeday/linux-surface/issues/204/comments","events_url":"https://api.github.com/repos/jakeday/linux-surface/issues/204/events","html_url":"https://github.com/jakeday/linux-surface/issues/204","id":333093184,"node_id":"MDU6SXNzdWUzMzMwOTMxODQ=","number":204,"title":"Suggestion: Make the SB detach button unmount USB storage or SD card","user":{"login":"tmarkov","id":14000949,"node_id":"MDQ6VXNlcjE0MDAwOTQ5","avatar_url":"https://avatars1.githubusercontent.com/u/14000949?v=4","gravatar_id":"","url":"https://api.github.com/users/tmarkov","html_url":"https://github.com/tmarkov","followers_url":"https://api.github.com/users/tmarkov/followers","following_url":"https://api.github.com/users/tmarkov/following{/other_user}","gists_url":"https://api.github.com/users/tmarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/tmarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmarkov/subscriptions","organizations_url":"https://api.github.com/users/tmarkov/orgs","repos_url":"https://api.github.com/users/tmarkov/repos","events_url":"https://api.github.com/users/tmarkov/events{/privacy}","received_events_url":"https://api.github.com/users/tmarkov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-17T21:09:17Z","updated_at":"2018-06-28T18:32:43Z","closed_at":"2018-06-28T18:01:02Z","author_association":"NONE","body":"Since the SD card reader and USB port of the Surface Book are on the keyboard, it makes perfect sense to automatically unmount them when pressing the detach key.\r\n\r\nI haven't been able to detect it to bind an unmount event to it, but can that be done in some way?"},"comment":{"url":"https://api.github.com/repos/jakeday/linux-surface/issues/comments/401131129","html_url":"https://github.com/jakeday/linux-surface/issues/204#issuecomment-401131129","issue_url":"https://api.github.com/repos/jakeday/linux-surface/issues/204","id":401131129,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTEzMTEyOQ==","user":{"login":"tmarkov","id":14000949,"node_id":"MDQ6VXNlcjE0MDAwOTQ5","avatar_url":"https://avatars1.githubusercontent.com/u/14000949?v=4","gravatar_id":"","url":"https://api.github.com/users/tmarkov","html_url":"https://github.com/tmarkov","followers_url":"https://api.github.com/users/tmarkov/followers","following_url":"https://api.github.com/users/tmarkov/following{/other_user}","gists_url":"https://api.github.com/users/tmarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/tmarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmarkov/subscriptions","organizations_url":"https://api.github.com/users/tmarkov/orgs","repos_url":"https://api.github.com/users/tmarkov/repos","events_url":"https://api.github.com/users/tmarkov/events{/privacy}","received_events_url":"https://api.github.com/users/tmarkov/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T18:32:43Z","updated_at":"2018-06-28T18:32:43Z","author_association":"NONE","body":"I don't think that will work. Sure, I can make a udev rule to unmount things when the keyboard is removed. The problem is, they need to be unmounted before the keyboard is removed. After all, when the keyboard is removed, any USB drives / SD cards are already disconnected.\r\n\r\nThe best thing I can think of, is to have them unmounted when the detach button is pressed. However, no event happens when it's pressed, so I can't set up anything to trigger then."}}
{"actor":{"display_login":"tmarkov"}}