Announcement

Collapse
No announcement yet.

SuperKaramba Theme How To??

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

    SuperKaramba Theme How To??

    Hello,

    I am using otromonitormas system monitor.
    (http://www.kde-look.org/content/show...?content=65412) downloaded from Kde-look.

    I already installed lm-sensors and hdd-temp programs.

    I have problem with the temperatures and fan speeds.
    On the graphics there are places for core1 and core2 only core1 shows temperature.
    No temperature for MB GPU and HDD.
    Also no display for fan1 and fan1.

    Can anyone help me to modify this theme??
    My pc AMD x2 4200+ Asus M2A-VM Mainborad Nvidia Geforce 8500GT
    Hardy Heron up to date!

    Thanks

    #2
    Re: SuperKaramba Theme How To??

    does lm-sensors
    Code:
     sensors
    list all temperatures/speeds in the konsole ?
    have you run
    Code:
     sudo sensors-detect
    after lm-sensors install?

    for hdd monitoring i myself am using smartmontools, which needs to be run as root (hence messing with sudoers). perhaps hddtemp has similar issues

    Comment


      #3
      Re: SuperKaramba Theme How To??

      Hello,

      I already installed lm-sensors and here is the output of sensors commans.


      attila@attila-ubuntu:~$ sensors
      k8temp-pci-00c3
      Adapter: PCI adapter
      Core0 Temp: +49.0°C
      Core1 Temp: +50.0°C

      it8716-isa-0228
      Adapter: ISA adapter
      VCore: +1.38 V (min = +0.00 V, max = +4.08 V)
      VDDR: +3.38 V (min = +0.00 V, max = +4.08 V)
      +3.3V: +0.00 V (min = +0.00 V, max = +4.08 V)
      +5V: +4.92 V (min = +0.00 V, max = +6.85 V)
      +12V: +11.97 V (min = +0.00 V, max = +16.32 V)
      in5: +0.00 V (min = +0.00 V, max = +4.08 V)
      in6: +0.00 V (min = +0.00 V, max = +4.08 V)
      5VSB: +4.97 V (min = +0.00 V, max = +6.85 V)
      VBat: +3.26 V
      fan1: 2678 RPM (min = 3245 RPM)
      fan2: 2089 RPM (min = 3245 RPM)
      fan4: 2033 RPM (min = 0 RPM)
      temp1: +51.0°C (low = -1.0°C, high = +127.0°C) sensor = thermal diode
      temp2: +45.0°C (low = -1.0°C, high = +127.0°C) sensor = transistor
      temp3: +25.0°C (low = -1.0°C, high = +127.0°C) sensor = transistor
      cpu0_vid: +1.550 V

      attila@attila-ubuntu:~$

      I think the problem is with the commands used in the system monitor theme.
      I think we should modify this theme.



      Comment


        #4
        Re: SuperKaramba Theme How To??

        that should be simple enough

        you can edit .theme files with kate (but do backup the original, just in case)
        the command for Core0 Temp should be something like
        Code:
         text x=... y=... sensor=program program="sensors | grep '...' | ... etc
        what follows immediately after grep is important, as it determines which line is printed; then the output passes through awk or sed to print just the temperature value
        e.g. in my own widget i use
        Code:
         text x=330 y=240 sensor=program program="sensors | grep 'Core0' | awk '{print $3}'" align=right interval=25000
        try changing values to Core0, Core1, fan1 and play with the theme

        Comment


          #5
          Re: SuperKaramba Theme How To??

          At the time you install hddtemp (which of course is done in "sudo" mode) it asks if you want the daemon started on the monitoring port. Assuming you tell it "YES", then the actual drive temps can be shown in your monitoring package in user mode -- at least that is true for gkrellm which I use.

          Comment


            #6
            Re: SuperKaramba Theme How To??

            Originally posted by dibl
            At the time you install hddtemp (which of course is done in "sudo" mode) it asks if you want the daemon started on the monitoring port. Assuming you tell it "YES", then the actual drive temps can be shown in your monitoring package in user mode -- at least that is true for gkrellm which I use.
            thanks, dibl!
            good to know there's a more elegant option to modifying /etc/sudoers.

            Comment


              #7
              Re: SuperKaramba Theme How To??

              Thanks for the replies.


              Musta
              In my case it seems i should use [grep "Core0 Temp"] and [grep "Core1 Temp"] for core temperatures.

              Dibl
              I replied yes to the question you mentioned with the installation of hdd temp.

              Now I am at work no linux here > .

              I will play with the file when i go home and write the results.

              Best Regards To All

              Comment


                #8
                Re: SuperKaramba Theme How To??

                Originally posted by attila_66
                In my case it seems i should use [grep "Core0 Temp"] and [grep "Core1 Temp"] for core temperatures.
                not really; sensors | grep 'Core0' will print all lines from sensors output which contain Core0, and since you have only one such line that's the one getting printed.

                Comment


                  #9
                  Re: SuperKaramba Theme How To??

                  Hello,

                  I tried lot of things but not satisfied.
                  Here is the karamba theme lines for temperature.

                  ### Temperatures ##########
                  <group> x=0 y=220

                  text x=10 y=10 fontsize=14 value="Temperatures:" fontsize=13 color=120,250,150
                  text x=10 y=25 value="Core0 :"
                  text x=150 y=25 value="Core1 :"
                  text x=100 y=25 sensor=program program="sensors | grep -o '+[^ ]*C' | head -n 1 | cut -d + -f2" interval=3000 align=left color=255,255,0
                  text x=200 y=25 sensor=program program="sensors | grep -o ' [^ ]*C' | tail -n 1| awk '{print $1}' | cut -d + -f2" interval=3000 align=left color=255,255,0
                  text x=10 y=40 value="CPU :"
                  text x=100 y=40 sensor=program program="sensors | grep 'CPU Temp:' | cut -d + -f 2 | cut -d ' ' -f 1" interval=3000 align=left color=255,255,0
                  bar x=168 y=45 path="image/barra.png" sensor=program program="sensors | grep 'CPU Temp: ' | cut -d + -f 2 | cut -d '.' -f 1" interval=3000 min=30 max=55
                  image x=167 y=44 path="image/barrab.png"
                  text x=10 y=55 value="MB :"
                  text x=100 y=55 sensor=program program="sensors | grep 'Sys Temp: ' | cut -d + -f 2 | cut -d ' ' -f 1" interval=3000 align=left color=255,255,0
                  bar x=168 y=60 path="image/barra.png" sensor=program program="sensors | grep 'Sys Temp: ' | cut -d + -f 2 | awk '{print -$1}' | cut -d - -f 2" interval=3000 min=30 max=45
                  image x=167 y=59 path="image/barrab.png"
                  text x=10 y=70 value="GPU :"
                  text x=100 y=70 sensor=program program="nvidia-settings -q gpucoretemp |grep '):' | awk '{print $4 0}'" interval=3000 align=left color=255,255,0
                  text x=127 y=70 value="°C" color=255,255,0
                  bar x=168 y=75 path="image/barra.png" sensor=program program="nvidia-settings -q gpucoretemp |grep '):' | awk '{print $4}' | cut -d '.' -f 1" interval=3000 min=45 max=75
                  image x=167 y=74 path="image/barrab.png"
                  text x=10 y=85 value="HD :"
                  text x=100 y=85 sensor=program program="hddtemp /dev/sda | awk '{print $3}'" interval=3000 align=left color=255,255,0
                  bar x=168 y=90 path="image/barra.png" sensor=program program="hddtemp -n /dev/sda" interval=3000 min=30 max=50
                  image x=167 y=89 path="image/barrab.png"


                  Here is the output:




                  How to configure lines??
                  What programing language are these files written??

                  Thanks for any help.

                  Comment


                    #10
                    Re: SuperKaramba Theme How To??

                    the theme file is basically a text file with a custom and very easy to learn syntax

                    let's try this for starters:

                    instead of
                    Code:
                     text x=100 y=25 sensor=program program="sensors | grep -o '+[^ ]*C' | head -n 1 | cut -d + -f2"&#160; interval=3000 align=left color=255,255,0
                    text x=200 y=25 sensor=program program="sensors | grep -o '&#160; &#160; &#160; &#160; &#160;[^ ]*C' | tail -n 1| awk '{print $1}' | cut -d + -f2"&#160; interval=3000 align=left color=255,255,0
                    place this
                    Code:
                     text x=100 y=25 sensor=program program="sensors | grep 'Core0' | awk '{print $3}'"&#160; interval=3000 align=left color=255,255,0
                     text x=200 y=25 sensor=program program="sensors | grep 'Core1' | awk '{print $3}'"&#160; interval=3000 align=left color=255,255,0
                    the cores' temperatures should now show;

                    the theme has fields for CPU and MB; however your board has more sensors and with a different naming scheme, therefore choose two of them and add them accordingly

                    instead of
                    Code:
                     text x=100 y=40 sensor=program program="sensors | grep 'CPU Temp:' | cut -d + -f 2 | cut -d ' ' -f 1" interval=3000 align=left color=255,255,0
                    try
                    Code:
                     text x=100 y=40 sensor=program program="sensors | grep 'temp1' | awk '{print $2}'" interval=3000 align=left color=255,255,0
                    same goes for MB

                    replace
                    Code:
                     text x=100 y=55 sensor=program program="sensors | grep 'Sys Temp: ' | cut -d + -f 2 | cut -d ' ' -f 1" interval=3000 align=left color=255,255,0
                    with
                    Code:
                     text x=100 y=55 sensor=program program="sensors | grep 'temp2' | awk '{print $2}'" interval=3000 align=left color=255,255,0
                    if all goes well something similar need to be done to the bars

                    as for the nvidia entries you should add a space between | and grep and check results

                    for hdtemp post an output of hddtemp /dev/sda here to see what the command should be

                    Comment


                      #11
                      Re: SuperKaramba Theme How To??

                      Hello,

                      Thank you very much for the help.
                      System works partially well.
                      All you said are working.
                      You can see a picture of my theme.
                      Meanwhile i installed nvidia-settings so my gpu temperature came on the theme without any change.
                      (I remembered GPU temperature on my last linux (Pardus) was working without modification after installing nvidia drivers and settings.)

                      Hddtemp program gives an output "premission denied". I think i said "no" to the question while installing hddtemp.
                      Tried uninstall and agan install no question is asked >

                      What to do now?

                      Thank you again Musta for your help.



                      Comment


                        #12
                        Re: SuperKaramba Theme How To??

                        Hello Again,

                        Meanwhile i worked on the theme and arranged the bars also



                        Hddemp is also ok. I found "sudo dpkg-reconfigure hddtemp" command. Saying yes to the first question made hdedtemp work with user previligies!!

                        But no success on fan speeds.
                        > > > > > > > >

                        I use this line

                        ext x=100 y=140 sensor=program program="sensors | grep 'fan1:' | awk '{print $3}'" interval=3000 align=left color=255,255,0

                        The output on the theme is "RPM" not a number like 2536.

                        Any suggestion??

                        Thanks for the help again.

                        Comment


                          #13
                          Re: SuperKaramba Theme How To??

                          i am glad it works (albeit partially)

                          for the fans just locate the lines containing cpu fan and chassis fan and change whatever it grep'd for with fan1, fan2, etc; if that doesn't work then just copy the line for Core0 and replace Core0 with fan1, etc.; just make sure to preserve the original coordinates (x,y)

                          now, should you wish to further tweak your theme this may be helpful.

                          Comment


                            #14
                            Re: SuperKaramba Theme How To??

                            Hello Musta

                            I used this line

                            ext x=100 y=140 sensor=program program="sensors | grep 'fan1:' | awk '{print $3}'" interval=3000 align=left color=255,255,0

                            The output on the theme is "RPM" not a number like 2536.

                            Any suggestion??

                            Thanks for the help again.

                            Comment


                              #15
                              Re: SuperKaramba Theme How To??

                              Originally posted by attila_66
                              I used this line

                              text x=100 y=140 sensor=program program="sensors | grep 'fan1:' | awk '{print $3}'" interval=3000 align=left color=255,255,0

                              Any suggestion??
                              go with:
                              text x=100 y=140 sensor=program program="sensors | grep 'fan1:' | awk '{print $2}'" interval=3000 align=left color=255,255,0

                              Comment

                              Working...
                              X