Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 398627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:46:01+00:00 2026-05-12T16:46:01+00:00

I wasn’t really sure if this was the right site to put this question

  • 0

I wasn’t really sure if this was the right site to put this question on, but I put it here since this is sort of a programming question and I figured the SO crowd was the most Linux-oriented of the three sites.

Anyways, I’m trying to find out a way to simulate disconnecting a device from a software aspect, just as if a user physically disconnected it. So far I’ve made a udev rule in /etc/udev/rules.d called 10-nano.rules:

SYSFS{idVendor}=="05ac", OPTIONS+="ignore_device"

This rule works fine for ignoring devices, but only after they have been disconnected and reconnected. But what i want to do is to be able to write the rule, and then have the device ignored as if it were disconnected. I’ve tried “udevadm trigger” with and without sudo, but for some reason I cannot apply this rule while the device is connected. Any suggestions?

By the way, I am able to reconnect a device that has been ignored by removing 10-nano.rules, and then running “sudo udevadm trigger”, but like said above, not the other way around. (for some reason my system time and internet get messed up when I run that command though)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T16:46:01+00:00Added an answer on May 12, 2026 at 4:46 pm

    Have you tried to rmmod the module that controls the device?

    You can also simulate remove events with udevadm test, p.e:

    sudo udevadm test --action="remove" <devpath>
    

    You can see how the devpaths are taking a look to udevadm monitor when physically connecting or removing a device, or check them in /sys/<devpath>.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've looked at this but it wasn't too much help. Maybe I didn't read
I'm a C++ newbie, but I wasn't able to find the answer to this
I wasn't aware of a difference, but a coworker says there is, although he
I've looked at this and it wasn't much help. I have a Ruby program
I can't find a reference to it but I remember reading that it wasn't
Forgive the vague title, I wasn't sure how to describe it. If you have
Why wasn't the Java throws clause (in method declaration) included in C#?
I've had to do some introspection in python and it wasn't pretty: name =
I've recently inherited the job of maintaining a database that wasn't designed very well
I'm administering a svn repo for a project where the source wasn't imported with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.