{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6304","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6304/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6304/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6304/events","html_url":"https://github.com/NixOS/nixpkgs/issues/6304","id":57314148,"number":6304,"title":"Observations/issues on Sony Vaio Pro 13","user":{"login":"arno01","id":3791945,"avatar_url":"https://avatars.githubusercontent.com/u/3791945?v=3","gravatar_id":"","url":"https://api.github.com/users/arno01","html_url":"https://github.com/arno01","followers_url":"https://api.github.com/users/arno01/followers","following_url":"https://api.github.com/users/arno01/following{/other_user}","gists_url":"https://api.github.com/users/arno01/gists{/gist_id}","starred_url":"https://api.github.com/users/arno01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arno01/subscriptions","organizations_url":"https://api.github.com/users/arno01/orgs","repos_url":"https://api.github.com/users/arno01/repos","events_url":"https://api.github.com/users/arno01/events{/privacy}","received_events_url":"https://api.github.com/users/arno01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2015-02-11T13:15:52Z","updated_at":"2016-07-25T07:05:28Z","closed_at":null,"body":"Following are my observation while using NixOS on Sony Vaio Pro 13 for ~3 weeks, basically some things aren't working 'out-of-a-box', and it would be nice to fix it :)\r\n\r\nI'm using XFCE4.\r\n\r\n1) Android storage devices can be seen only when the following option was set in `/etc/nixos/configuration.nix`\r\n  `services.udev.packages = [ pkgs.libmtp ];`\r\n\r\n2) `/dev/mmcblk0` device (SD card) can be seen only after executing following command:\r\n  `echo 1 | tee /sys/bus/pci/rescan`\r\n\r\n3) So that a user in wheel group can mount storage and do other operations on disks and storage devices\r\n```\r\n  security.polkit.extraConfig =\r\n  ''\r\n    // so that a user in wheel group can mount storage and do other operations on disks and storage devices (pkaction)\r\n    polkit.addRule(function(action, subject) {\r\n        if (action.id.indexOf(\"org.freedesktop.udisks2.\") == 0 &&\r\n            subject.isInGroup(\"wheel\")) {\r\n            return polkit.Result.YES;\r\n        }\r\n    });\r\n  '';\r\n```\r\n\r\n4) Sound over HDMI should Not be a primary on Sony Vaio Pro 13\r\n```\r\n[root@nixos:~]# lspci -nn |grep -i audio\r\n00:03.0 Audio device [0403]: Intel Corporation Haswell-ULT HD Audio Controller [8086:0a0c] (rev 09)\r\n00:1b.0 Audio device [0403]: Intel Corporation 8 Series HD Audio Controller [8086:9c20] (rev 04)\r\n```\r\n\r\n```\r\n  boot.extraModprobeConfig = \r\n  ''\r\n    ##\r\n    # Fixing order of audio devices, based on: lspci -nn |grep -i audio\r\n    ##\r\n    #  PCH goes first\r\n    options snd-hda-intel index=0 model=auto vid=8086 pid=0a0c\r\n    #  HDMI goes second\r\n    options snd-hda-intel index=1 model=auto vid=8086 pid=9c20\r\n  '';\r\n```\r\n\r\n5) I tried different approach to use openbox (along with obconf, obmenu, fbpanel, ...) instead of XFCE, however I didn't even find \"startx\"... it's not a problem to write a script which would launch everything I need (X, openbox, ...), but it would be very nice to see that it could be done with just `desktopManager.openbox.enable = true;` :-)  // I don't have plenty of time to write all the commits on my own, however I do not want my observations to be lost in time & space :-) //\r\n\r\n6) Backlight in console changes to minimum when switching from xorg to console\r\nI've found couple of bugs opened for that, seems the issue lies in Xorg\r\nhttps://bugzilla.kernel.org/show_bug.cgi?id=79541\r\nhttps://bugs.freedesktop.org/show_bug.cgi?id=80987\r\nIt would be nice if someone will come up with a good solution so that we could merge it into master :-)\r\n"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/234858790","html_url":"https://github.com/NixOS/nixpkgs/issues/6304#issuecomment-234858790","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6304","id":234858790,"user":{"login":"domenkozar","id":126339,"avatar_url":"https://avatars.githubusercontent.com/u/126339?v=3","gravatar_id":"","url":"https://api.github.com/users/domenkozar","html_url":"https://github.com/domenkozar","followers_url":"https://api.github.com/users/domenkozar/followers","following_url":"https://api.github.com/users/domenkozar/following{/other_user}","gists_url":"https://api.github.com/users/domenkozar/gists{/gist_id}","starred_url":"https://api.github.com/users/domenkozar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domenkozar/subscriptions","organizations_url":"https://api.github.com/users/domenkozar/orgs","repos_url":"https://api.github.com/users/domenkozar/repos","events_url":"https://api.github.com/users/domenkozar/events{/privacy}","received_events_url":"https://api.github.com/users/domenkozar/received_events","type":"User","site_admin":false},"created_at":"2016-07-25T07:05:28Z","updated_at":"2016-07-25T07:05:28Z","body":"Should be migrated to the hardware repo"}}
{"actor":{"display_login":"domenkozar"}}