Announcement

Collapse
No announcement yet.

Linux PWM Gains An Atomic Interface In Linux 4.7

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • phoronix
    started a topic Linux PWM Gains An Atomic Interface In Linux 4.7

    Linux PWM Gains An Atomic Interface In Linux 4.7

    Phoronix: Linux PWM Gains An Atomic Interface In Linux 4.7

    The Linux Kernel's PWM (Pulse Width Modulation) interface now has an atomic API for those writing drivers for fans, LEDs, vibrators, and other supported devices...

    http://www.phoronix.com/scan.php?pag...-PWM-Linux-4.7

  • FireBurn
    replied
    Maybe they're writing a linux driver for this old PS2 accessory: http://www.giantbomb.com/trance-vibrator/3000-6/

    Leave a comment:


  • bregma
    replied
    Originally posted by caligula View Post
    I'd also imagine that professional solutions might expect atomic operation. For example if you're controlling lights, would be nice if they didn't accidently blink too fast or too slow or partially when the kernel is processing something. Some motors might not provide smooth operation if the control isn't atomic.
    Well, the kernel being busy isn't going to affect the pulse width, since that's all done in hardware (you write a width value to a register over the I2C bus, for example). The atomic interface would simply eliminate race conditions between a query and a set operation in the case of a multithreaded controller without having to use a higher-level (and orders of magnitude more expensive) locking operation. The result is a more efficient operation on a small underpowered CPU where cycles, memory, and battery are all at a premium.

    Really, PWM has nothing to do with vibrators or blinkenlights. It's a one-wire data communication protocol using the time domain to communicate digital information.

    Leave a comment:


  • caligula
    replied
    Originally posted by bregma View Post
    PWM is used for things like stepper motor control. So, for positioning the head of your... uh, how to put it delicately... hard drive. Mmm, no, that sounds rude. It's used in robotics, like changing the angle of your mechanical device. Dang it. Anyway, Linux gets inserted into all kinds of things these days, things that bring hobbyists and professionals alike a great deal of pleasure, so enjoy the new interface.
    I'd also imagine that professional solutions might expect atomic operation. For example if you're controlling lights, would be nice if they didn't accidently blink too fast or too slow or partially when the kernel is processing something. Some motors might not provide smooth operation if the control isn't atomic.

    Leave a comment:


  • caligula
    replied
    Originally posted by cj.wijtmans View Post
    cool now its easier to make home-made vibrators.
    The fun part is, there are already IoT vibrators and sex toys with some embedded OS. Maybe Linux. Haven't tested.

    Leave a comment:


  • cj.wijtmans
    replied
    cool now its easier to make home-made vibrators.

    Leave a comment:


  • bregma
    replied
    PWM is used for things like stepper motor control. So, for positioning the head of your... uh, how to put it delicately... hard drive. Mmm, no, that sounds rude. It's used in robotics, like changing the angle of your mechanical device. Dang it. Anyway, Linux gets inserted into all kinds of things these days, things that bring hobbyists and professionals alike a great deal of pleasure, so enjoy the new interface.

    Leave a comment:


  • starshipeleven
    replied
    Originally posted by Hi-Angel View Post
    Just curious, why would anyone want to write a driver for vibrator?
    apart from the obvious smartphones/tablets and embedded devices in general angle,

    there are all VR gear that would benefit from better control over vibrators, and I'm thinking about devices like this http://edition.cnn.com/2015/01/09/te...est/index.html

    also this (that never realized) http://www.roadtovr.com/araig-kickst...rtual-reality/
    Although of course the same tech can be used to make VR gear for simulating intercourse, and it would also sell pretty damn well even outside of the usual sex toy buyer circles.
    Last edited by starshipeleven; 05-25-2016, 05:37 PM.

    Leave a comment:


  • schmidtbag
    replied
    Originally posted by Hi-Angel View Post
    Just curious, why would anyone want to write a driver for vibrator?
    Ever thought about phones or tablets....? If you like dildos, I'm not gonna judge. But they aren't the first thing to vibrate.
    Last edited by schmidtbag; 05-25-2016, 03:46 PM.

    Leave a comment:


  • davidbepo
    replied
    Originally posted by Hi-Angel View Post
    Just curious, why would anyone want to write a driver for vibrator?
    because linux is everywhere!

    Leave a comment:

Working...
X