Announcement

Collapse
No announcement yet.

KDE is slow

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Re: KDE is slow

    Can I kill this process? Or even better disable it to start again?

    Comment


      #17
      Re: KDE is slow

      Originally posted by umpirsky
      No, it is not working.

      I have tried with tvtime, but it does not work. It's WinFast 2000, so I guess it is not supported.

      It would be nice to disable it temporary just to speed things up.

      How can I do that?
      Since it is a USB device:
      USB device 1-9 : ZTE WCDMA Technologies MSM (ZTE,Incorporated)
      just unplug it and reboot, or, us "sudo rmmod xyz" (where "xyz" is the name of the kernel driver) to
      remove the kernel module driving the device.
      "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
      – John F. Kennedy, February 26, 1962.

      Comment


        #18
        Re: KDE is slow

        It's not USB device. It's on the board. How can I determine the driver name?

        Ah, that USB device 1-9 : ZTE WCDMA Technologies MSM (ZTE,Incorporated) is
        my mobile internet modem. I'm using it to connect to the internet via VIP mobile.

        Comment


          #19
          Re: KDE is slow

          But internet USB0.takes only 0.6% which is nothing coparing to [kernel module] hrtimer_start (cx88_ir_work)

          Comment


            #20
            Re: KDE is slow

            Originally posted by umpirsky
            It's not USB device. It's on the board. How can I determine the driver name?
            ...
            Ok, then. More than likely there is an option in your BIOS to disable the TV tuner OR to change its
            interrupt number. Try changing its IRQ port first, and if that doesn't work then disable it. IF there is no
            option in the BIOS to disable the TV tuner another option, although drastic, would be to cut the trace
            supplying power to the tuner section, solder wires to the severed sides and lead them to a toggle switch
            you mount on the back panel of your computer. (Use a shielded wire pair and ground the shield to
            chassis ground.) That way you can turn your tuner off and on.
            "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
            – John F. Kennedy, February 26, 1962.

            Comment


              #21
              Re: KDE is slow

              Originally posted by GreyGeek
              Originally posted by umpirsky
              It's not USB device. It's on the board. How can I determine the driver name?
              ...
              Try changing its IRQ port first, and if that doesn't work then disable it.
              Thanks for the answer.

              How do I do this? How can I disable it through some config? I still want to use it from win.

              Comment


                #22
                Re: KDE is slow

                Originally posted by umpirsky
                .....
                How do I do this? How can I disable it through some config? I still want to use it from win.
                Well, if you want to continue to use it from within Windows then disabling it in the BIOS is out of the question.
                What you'll have to do is open a konsole and issue
                lsmod

                Copy & Paste the output into your next message so we can look at what drivers you have loaded.
                One or more of them will be for your TV tuner (v4l1 and v4l2 kernel modules and their dependencies).
                Once we determine which ones they are we can use
                rmmod whateverthenameis
                to remove them.
                And, we will have to blacklist them to prevent them from being reloaded the next time you boot.
                We do that by adding the line:
                blacklist whateverthenameis
                to /etc/modules.d/blacklist.conf (use kdesudo kate /etc/modules.d/blacklist.conf to edit the file)
                and then rebooting.
                "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                – John F. Kennedy, February 26, 1962.

                Comment


                  #23
                  Re: KDE is slow

                  Which of theese tveeprom?

                  Module Size Used by
                  ppp_deflate 12838 0
                  zlib_deflate 26594 1 ppp_deflate
                  bsd_comp 12777 0
                  ppp_async 17308 1
                  crc_ccitt 12595 1 ppp_async
                  nls_utf8 12493 1
                  isofs 39571 1
                  binfmt_misc 13213 1
                  dm_crypt 22463 0
                  vesafb 13449 1
                  snd_hda_codec_hdmi 27479 1
                  snd_hda_codec_realtek 255820 1
                  rc_winfast 12454 0
                  tuner_xc2028 26609 1
                  snd_hda_intel 24140 2
                  ir_lirc_codec 12770 0
                  tuner 26802 1
                  lirc_dev 18720 1 ir_lirc_codec
                  snd_hda_codec 90901 3 snd_hda_codec_hdmi,snd_hda_codec_realtek,
                  snd_hda_intel
                  ir_sony_decoder 12493 0
                  ir_jvc_decoder 12490 0
                  snd_hwdep 13274 1 snd_hda_codec
                  ir_rc6_decoder 12490 0
                  cx8800 33381 0
                  snd_seq_midi 13132 0
                  ir_rc5_decoder 12490 0
                  cx88_alsa 13797 1
                  snd_pcm 80244 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,
                  cx88_alsa
                  snd_rawmidi 25269 1 snd_seq_midi
                  snd_seq_midi_event 14475 1 snd_seq_midi
                  ir_nec_decoder 12490 0
                  cx88xx 78563 2 cx8800,cx88_alsa
                  snd_seq 51291 2 snd_seq_midi,snd_seq_midi_event
                  rc_core 25760 9 rc_winfast,ir_lirc_codec,ir_sony_decoder,ir_jvc_de coder,ir_rc6_decoder,ir_rc5_decoder,
                  ir_nec_decoder,
                  cx88xx
                  snd_timer 28659 2 snd_pcm,snd_seq
                  snd_seq_device 14110 3 snd_seq_midi,snd_rawmidi,snd_seq
                  i2c_algo_bit 13184 1 cx88xx
                  snd 55295 17 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_i ntel,snd_hda_codec,
                  snd_hwdep, cx88_alsa,snd_pcm,snd_rawmidi,snd_seq,snd_timer,sn d_seq_device
                  option 21045 2
                  usb_wwan 19711 1 option
                  tveeprom 17009 1 cx88xx
                  fglrx 2434640 185
                  v4l2_common 16757 3 tuner,cx8800,cx88xx
                  soundcore 12600 1 snd
                  usbserial 37116 7 option,usb_wwan
                  ppdev 12849 0
                  videobuf_dma_sg 18747 3 cx8800,cx88_alsa,cx88xx
                  videobuf_core 25193 3 cx8800,cx88xx,videobuf_dma_sg
                  videodev 75143 4 tuner,cx8800,cx88xx,v4l2_common
                  btcx_risc 13400 3 cx8800,cx88_alsa,cx88xx
                  snd_page_alloc 14073 2 snd_hda_intel,snd_pcm
                  k8temp 12872 0
                  i2c_nforce2 12906 0
                  parport_pc 32111 1
                  lp 13349 0
                  parport 36746 3 ppdev,parport_pc,lp
                  usbhid 41704 0
                  hid 77084 1 usbhid
                  usb_storage 43946 1
                  uas 17676 0
                  ahci 21591 4
                  firewire_ohci 31504 0
                  firewire_core 56138 1 firewire_ohci
                  crc_itu_t 12627 1 firewire_core
                  libahci 25548 1 ahci
                  pata_amd 13762 2
                  forcedeth 58190 0

                  Thank you very much, really appriciate your help.

                  Comment


                    #24
                    Re: KDE is slow

                    Originally posted by umpirsky
                    Which of theese tveeprom?

                    Module Size Used by
                    ppp_deflate 12838 0
                    zlib_deflate 26594 1 ppp_deflate
                    bsd_comp 12777 0
                    ppp_async 17308 1
                    crc_ccitt 12595 1 ppp_async
                    nls_utf8 12493 1
                    isofs 39571 1
                    binfmt_misc 13213 1
                    dm_crypt 22463 0
                    vesafb 13449 1
                    snd_hda_codec_hdmi 27479 1
                    snd_hda_codec_realtek 255820 1
                    rc_winfast 12454 0
                    tuner_xc2028 26609 1
                    snd_hda_intel 24140 2
                    ir_lirc_codec 12770 0
                    tuner 26802 1
                    lirc_dev 18720 1 ir_lirc_codec
                    snd_hda_codec 90901 3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_i ntel
                    ir_sony_decoder 12493 0
                    ir_jvc_decoder 12490 0
                    snd_hwdep 13274 1 snd_hda_codec
                    ir_rc6_decoder 12490 0
                    cx8800 33381 0
                    snd_seq_midi 13132 0
                    ir_rc5_decoder 12490 0
                    cx88_alsa 13797 1
                    snd_pcm 80244 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,cx8 8_alsa
                    snd_rawmidi 25269 1 snd_seq_midi
                    snd_seq_midi_event 14475 1 snd_seq_midi
                    ir_nec_decoder 12490 0
                    cx88xx 78563 2 cx8800,cx88_alsa
                    snd_seq 51291 2 snd_seq_midi,snd_seq_midi_event
                    rc_core 25760 9 rc_winfast,ir_lirc_codec,ir_sony_decoder,ir_jvc_de coder,ir_rc6_decoder,ir_rc5_decoder,ir_nec_decoder ,cx88xx
                    snd_timer 28659 2 snd_pcm,snd_seq
                    snd_seq_device 14110 3 snd_seq_midi,snd_rawmidi,snd_seq
                    i2c_algo_bit 13184 1 cx88xx
                    snd 55295 17 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_i ntel,snd_hda_codec,snd_hwdep,cx88_alsa,
                    snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_devi ce
                    option 21045 2
                    usb_wwan 19711 1 option
                    tveeprom 17009 1 cx88xx
                    fglrx 2434640 185
                    v4l2_common 16757 3 tuner,cx8800,cx88xx
                    soundcore 12600 1 snd
                    usbserial 37116 7 option,usb_wwan
                    ppdev 12849 0
                    videobuf_dma_sg 18747 3 cx8800,cx88_alsa,cx88xx
                    videobuf_core 25193 3 cx8800,cx88xx,videobuf_dma_sg
                    videodev 75143 4 tuner,cx8800,cx88xx,v4l2_common

                    btcx_risc 13400 3 cx8800,cx88_alsa,cx88xx
                    snd_page_alloc 14073 2 snd_hda_intel,snd_pcm
                    k8temp 12872 0
                    i2c_nforce2 12906 0
                    parport_pc 32111 1
                    lp 13349 0
                    parport 36746 3 ppdev,parport_pc,lp
                    usbhid 41704 0
                    hid 77084 1 usbhid
                    usb_storage 43946 1
                    uas 17676 0
                    ahci 21591 4
                    firewire_ohci 31504 0
                    firewire_core 56138 1 firewire_ohci
                    crc_itu_t 12627 1 firewire_core
                    libahci 25548 1 ahci
                    pata_amd 13762 2
                    forcedeth 58190 0

                    Thank you very much, really appriciate your help.
                    The ones I've marked in red for sure, and perhaps all of those marked in yellow.
                    The key is determining which module is the "master", the one that calls all the others because it depends on them.
                    You can use
                    modinfo tveeprom
                    to get information about that module and to see what else it depends upon.
                    The module that has the most dependencies is probably the "master". If you chose the wrong one and try
                    rmmod thewrongone
                    you will get a message saying that thewrongone cannot be removed because anotherone depends upon it.
                    What that means is that before you can remove the master module you must remove the dependencies first.
                    modinfo will give you a list of the dependencies of each module.
                    Here is an example for a module in my list, videodev:
                    Code:
                    $ modinfo videodev
                    filename:    /lib/modules/2.6.35-25-generic/kernel/drivers/media/video/videodev.ko                         
                    alias:     char-major-81-*
                    license:    GPL
                    description:  Device registrar for Video4Linux drivers v2                                      
                    author:     Alan Cox, Mauro Carvalho Chehab <mchehab@infradead.org>                                
                    srcversion:   251FD042803B0D483A085D0
                    [color=red]depends:    v4l2-compat-ioctl32,v4l1-compat[/color]
                    vermagic:    2.6.35-25-generic SMP mod_unload modversions                                     
                    jerry@sonyvgnfw140e:~$ 
                    jerry@sonyvgnfw140e:~$ modinfo v4l2-compat-ioctl32
                    filename:    /lib/modules/2.6.35-25-generic/kernel/drivers/media/video/v4l2-compat-ioctl32.ko
                    license:    GPL                                                          
                    srcversion:   CDE9BA0F7AB6F1894AFF7A6
                    [color=red]depends:    [/color]
                    vermagic:    2.6.35-25-generic SMP mod_unload modversions 
                    jerry@sonyvgnfw140e:~$ modinfo v4l1-compat
                    filename:    /lib/modules/2.6.35-25-generic/kernel/drivers/media/video/v4l1-compat.ko
                    license:    GPL
                    description:  v4l(1) compatibility layer for v4l2 drivers.
                    author:     Bill Dirks
                    srcversion:   E98903C7627EBE32AD250B1
                    [color=red]depends:   [/color]  
                    vermagic:    2.6.35-25-generic SMP mod_unload modversions 
                    parm:      debug:enable debug messages (int)
                    jerry@sonyvgnfw140e:~$
                    IF you have an onboard webcam we may have to reinstall some modules to drive it, if we accidentally remove them.
                    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                    – John F. Kennedy, February 26, 1962.

                    Comment


                      #25
                      Re: KDE is slow

                      Great!

                      But I can't remove one that is in use. Ex:

                      #modinfo tveeprom
                      filename: /lib/modules/2.6.38-8-generic/kernel/drivers/media/video/tveeprom.ko
                      license: GPL
                      author: John Klar
                      description: i2c Hauppauge eeprom decoder driver
                      srcversion: 90A8EEDF913B1108A538792
                      depends:
                      vermagic: 2.6.38-8-generic SMP mod_unload modversions 686
                      parm: debugebug level (0-1) (int)


                      # modinfo tuner_xc2028
                      filename: /lib/modules/2.6.38-8-generic/kernel/drivers/media/common/tuners/tuner-xc2028.ko
                      license: GPL
                      author: Mauro Carvalho Chehab <mchehab@infradead.org>
                      author: Michel Ludwig <michel.ludwig@gmail.com>
                      description: Xceive xc2028/xc3028 tuner driver
                      srcversion: F6E1B4E55371AE10656F1F7
                      depends:
                      vermagic: 2.6.38-8-generic SMP mod_unload modversions 686
                      parm: debug:enable verbose debug messages (int)
                      parm: no_poweroff:0 (default) powers device off when not used.
                      1 keep device energized and with tuner ready all the times.
                      Faster, but consumes more power and keeps the device hotter
                      (int)
                      parm: audio_std:Audio standard. XC3028 audio decoder explicitly needs to know what audio
                      standard is needed for some video standards with audio A2 or NICAM.
                      The valid values are:
                      A2
                      A2/A
                      A2/B
                      NICAM
                      NICAM/A
                      NICAM/B
                      (string)
                      parm: firmware_name:Firmware file name. Allows overriding the default firmware name
                      (string)


                      # rmmod tuner_xc2028
                      ERROR: Module tuner_xc2028 is in use

                      Comment


                        #26
                        Re: KDE is slow

                        Many of them are in use by cx88xx.

                        Comment


                          #27
                          Re: KDE is slow

                          You can
                          rmmod cx88xx
                          and see what happens.

                          However, a better way would be to create a spreadsheet. Put all your modules down the first column AND then across the first row. At the intersection of each row/column put an X if the module in the row depends on the module in the column. Start rmmoding the modules with no dependencies that obviously are part of the TV tuner drivers. You know you've got them all when the one with the most dependencies can be rmmod'd without errors.

                          BE SURE to blacklist them in /etc/module.d/blacklist.conf before you reboot!
                          "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                          – John F. Kennedy, February 26, 1962.

                          Comment


                            #28
                            Re: KDE is slow

                            The problem is that I cannot rmmod them while active, and I don't know how to stop them.

                            # rmmod cx88xx
                            ERROR: Module cx88xx is in use by cx88_alsa
                            # rmmod cx88_alsa
                            ERROR: Module cx88_alsa is in use

                            Comment


                              #29
                              Re: KDE is slow

                              Ah, there is a force option


                              #rmmod -f cx88_alsa
                              ERROR: Removing 'cx88_alsa': Resource temporarily unavailable

                              -f (or --force) forces a module unload, and may crash your
                              machine. This requires the Forced Module Removal option
                              when the kernel was compiled.

                              It works now.

                              After removing:
                              cx88_alsa
                              cx88xx


                              powertop loooks like this:

                              Wakeups-from-idle per second : 522.5 interval: 5.0s
                              no ACPI power usage estimate available

                              Top causes for wakeups:
                              54.9% (597.0) chrome
                              26.1% (284.0) [Rescheduling interrupts] <kernel IPI>
                              3.8% ( 41.2) USB device 2-2 : USB-PS/2 Optical Mouse (Logitech)
                              2.9% ( 32.0) [ohci_hcd:usb2] <interrupt>
                              2.0% ( 22.0) [kernel scheduler] Load balancing tick
                              1.9% ( 20.8) kworker/0:0
                              1.8% ( 20.0) knotify4
                              1.2% ( 12.8) USB device 1-9 : ZTE WCDMA Technologies MSM (ZTE,Incorporated)
                              1.2% ( 12.6) [ehci_hcd:usb1] <interrupt>
                              1.1% ( 11.6) postgres
                              1.0% ( 11.2) [kernel core] timer_action (ehci_watchdog)

                              Comment


                                #30
                                Re: KDE is slow

                                In /etc/ there was no module.d dir nor blacklist.conf, so i crated it with content:

                                blacklist cx88_alsa
                                blacklist cx88xx

                                Comment

                                Working...
                                X