René's URL Explorer Experiment


Title: PermissionError: [Errno 13] Failed to open the uinput device: Permission denied · Issue #9 · pyinput/python-uinput · GitHub

Open Graph Title: PermissionError: [Errno 13] Failed to open the uinput device: Permission denied · Issue #9 · pyinput/python-uinput

X Title: PermissionError: [Errno 13] Failed to open the uinput device: Permission denied · Issue #9 · pyinput/python-uinput

Description: I am trying to use uinput as a standard user, as for my intended usage this is how most people will want to use it. I have installed uinput into a python venv using pip install python-uinput I have run chmod a=rw /dev/input as root (comm...

Open Graph Description: I am trying to use uinput as a standard user, as for my intended usage this is how most people will want to use it. I have installed uinput into a python venv using pip install python-uinput I have...

X Description: I am trying to use uinput as a standard user, as for my intended usage this is how most people will want to use it. I have installed uinput into a python venv using pip install python-uinput I have...

Opengraph URL: https://github.com/pyinput/python-uinput/issues/9

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PermissionError: [Errno 13] Failed to open the uinput device: Permission denied","articleBody":"I am trying to use uinput as a standard user, as for my intended usage this is how most people will want to use it.\n\n- I have installed uinput into a python venv using `pip install python-uinput`\n- I have run `chmod a=rw /dev/input` as root (comment from issue #3)\n- I have run `/usr/sbin/modprobe -i uinput` as the standard user\n- I have confirmed the module is loaded with `lsmod | grep uinput`, I got: `uinput                 20480  0`\n\nI used the mouse example:\n```\nimport uinput\n\nwith uinput.Device([uinput.REL_X, uinput.REL_Y, uinput.BTN_LEFT, uinput.BTN_RIGHT]) as device:\n    for i in range(20):\n        device.emit(uinput.REL_X, 5)\n        device.emit(uinput.REL_Y, 5)\n```\n\nwhen running this I get:\n```\nTraceback (most recent call last):\n  File \"/home/dave/Documents/github/robotframework-dbus/tmp/uinput_mouse.py\", line 3, in \u003cmodule\u003e\n    with uinput.Device([uinput.REL_X, uinput.REL_Y, uinput.BTN_LEFT, uinput.BTN_RIGHT]) as device:\n         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/home/dave/Documents/github/robotframework-dbus/.venv/lib/python3.11/site-packages/uinput/__init__.py\", line 190, in __init__\n    self.__uinput_fd = fd or fdopen()\n                             ^^^^^^^^\n  File \"/home/dave/Documents/github/robotframework-dbus/.venv/lib/python3.11/site-packages/uinput/__init__.py\", line 88, in fdopen\n    return _libsuinput.suinput_open()\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/home/dave/Documents/github/robotframework-dbus/.venv/lib/python3.11/site-packages/uinput/__init__.py\", line 74, in _open_error_handler\n    raise OSError(code, msg)\nPermissionError: [Errno 13] Failed to open the uinput device: Permission denied\n```\n\nI tried to check dmesg (also based on comment from Issue #3) but current user is not able to access dmesg (dmesg: read kernel buffer failed: Operation not permitted), I when I checked dmesg as root it on;y shows messages from when I tried to run the same example as root, which also did not move the mouse on the desktop of the current logged in user (not surprising I guess)\n\nI'm not sure how to proceed from here? Any advice? does uinput-python work for non-privileged users?\n\n\nedit:\n- Debian 12 (bookworm) 64bit\n- Gnome 43.9\n- Wayland (This is why I'm looking into uinput-python, pyautogui doesn't work with Wayland) \n\nDave.","author":{"url":"https://github.com/damies13","@type":"Person","name":"damies13"},"datePublished":"2025-07-11T07:35:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/9/python-uinput/issues/9"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:64078ced-d46e-6989-f746-beff2dd70a5c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDA4A:5E6E6:9A3DB1:D410A5:698F2CDC
html-safe-nonce0f9a06203908da383d1b1a2026f0e3b74b14ed2bb43264f6b5e4b8d98470c82d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTRBOjVFNkU2OjlBM0RCMTpENDEwQTU6Njk4RjJDREMiLCJ2aXNpdG9yX2lkIjoiNzcwMjk3NjU3MjQ0MTk2Mzc0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2764cdd909d66012c2c5a4bc068c8ab4baa8ab32a79dc41201c823e40b8156c7
hovercard-subject-tagissue:3221902361
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pyinput/python-uinput/9/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0713ad848b76d495e2670cba5eaaa474f689689cee8126f5eded76bf6a05bf88/pyinput/python-uinput/issues/9
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0713ad848b76d495e2670cba5eaaa474f689689cee8126f5eded76bf6a05bf88/pyinput/python-uinput/issues/9
og:image:altI am trying to use uinput as a standard user, as for my intended usage this is how most people will want to use it. I have installed uinput into a python venv using pip install python-uinput I have...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedamies13
hostnamegithub.com
expected-hostnamegithub.com
None6102991c714c1a6a27d05fb4f96ea6ca87a6750b4f093b95cc57ed1b84b145a1
turbo-cache-controlno-preview
go-importgithub.com/pyinput/python-uinput git https://github.com/pyinput/python-uinput.git
octolytics-dimension-user_id158596880
octolytics-dimension-user_loginpyinput
octolytics-dimension-repository_id773191892
octolytics-dimension-repository_nwopyinput/python-uinput
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id773191892
octolytics-dimension-repository_network_root_nwopyinput/python-uinput
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released52a41ad9b9ffb9b63a1b4a600a6054be8b70b36
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/pyinput/python-uinput/issues/9#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpyinput%2Fpython-uinput%2Fissues%2F9
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpyinput%2Fpython-uinput%2Fissues%2F9
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=pyinput%2Fpython-uinput
Reloadhttps://patch-diff.githubusercontent.com/pyinput/python-uinput/issues/9
Reloadhttps://patch-diff.githubusercontent.com/pyinput/python-uinput/issues/9
Reloadhttps://patch-diff.githubusercontent.com/pyinput/python-uinput/issues/9
pyinput https://patch-diff.githubusercontent.com/pyinput
python-uinputhttps://patch-diff.githubusercontent.com/pyinput/python-uinput
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpyinput%2Fpython-uinput
Fork 2 https://patch-diff.githubusercontent.com/login?return_to=%2Fpyinput%2Fpython-uinput
Star 35 https://patch-diff.githubusercontent.com/login?return_to=%2Fpyinput%2Fpython-uinput
Code https://patch-diff.githubusercontent.com/pyinput/python-uinput
Issues 2 https://patch-diff.githubusercontent.com/pyinput/python-uinput/issues
Pull requests 1 https://patch-diff.githubusercontent.com/pyinput/python-uinput/pulls
Actions https://patch-diff.githubusercontent.com/pyinput/python-uinput/actions
Projects 0 https://patch-diff.githubusercontent.com/pyinput/python-uinput/projects
Security 0 https://patch-diff.githubusercontent.com/pyinput/python-uinput/security
Insights https://patch-diff.githubusercontent.com/pyinput/python-uinput/pulse
Code https://patch-diff.githubusercontent.com/pyinput/python-uinput
Issues https://patch-diff.githubusercontent.com/pyinput/python-uinput/issues
Pull requests https://patch-diff.githubusercontent.com/pyinput/python-uinput/pulls
Actions https://patch-diff.githubusercontent.com/pyinput/python-uinput/actions
Projects https://patch-diff.githubusercontent.com/pyinput/python-uinput/projects
Security https://patch-diff.githubusercontent.com/pyinput/python-uinput/security
Insights https://patch-diff.githubusercontent.com/pyinput/python-uinput/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/pyinput/python-uinput/issues/9
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/pyinput/python-uinput/issues/9
PermissionError: [Errno 13] Failed to open the uinput device: Permission deniedhttps://patch-diff.githubusercontent.com/pyinput/python-uinput/issues/9#top
https://github.com/damies13
https://github.com/damies13
damies13https://github.com/damies13
on Jul 11, 2025https://github.com/pyinput/python-uinput/issues/9#issue-3221902361
I got nothing reaction from the example code #3https://github.com/pyinput/python-uinput/issues/3
#3https://github.com/pyinput/python-uinput/issues/3
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.