#0 -1 » Tearing vidéos saccadées sous NVIDIA G96 [GeForce 9500 GT] » Le 20/04/2013, à 13:24
- ferreol
- Réponses : 22
Bonjour
J'ai un soucis de Tearing et de lenteur de Videos depuis peu :
Ma carte video est une NVIDIA Corporation G96 [GeForce 9500 GT] et sous mon Xorg.conf j ai bien le pilote Nvidia utilisé
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Je suis sous Xubuntu 12.10 i686 3.5.0.26 et n'utilise pas compiz
Merci par avance pour vos consiels.
#1 Re : -1 » Tearing vidéos saccadées sous NVIDIA G96 [GeForce 9500 GT] » Le 20/04/2013, à 13:55
- ferreol
- Réponses : 22
ouah rapide le support
J' ai Installé les drivers via synaptic Nvidia-current
le menu NVIDIA X server Setting se lance bien et j'ai la version 304.88
OPen GL setting Sync to Vblank bien coché.
#2 Re : -1 » Tearing vidéos saccadées sous NVIDIA G96 [GeForce 9500 GT] » Le 20/04/2013, à 14:00
- ferreol
- Réponses : 22
Using X configuration file: "/etc/X11/xorg.conf".
Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup'
New X configuration file written to '/etc/X11/xorg.conf'
je redemarre et te tiens au jus
Merci pour ton aide.
#3 Re : -1 » Tearing vidéos saccadées sous NVIDIA G96 [GeForce 9500 GT] » Le 20/04/2013, à 14:04
- ferreol
- Réponses : 22
Malheuresement toujours pareil
#4 Re : -1 » Tearing vidéos saccadées sous NVIDIA G96 [GeForce 9500 GT] » Le 20/04/2013, à 14:12
- ferreol
- Réponses : 22
VLC ou Kaffeine idem sur un divx local soit youtube Tearing Test video ( qui sort réellement dégueu chez moi)
#5 Re : -1 » Tearing vidéos saccadées sous NVIDIA G96 [GeForce 9500 GT] » Le 20/04/2013, à 14:41
- ferreol
- Réponses : 22
je n'en ai pas mais cela Tear aussi sur la TV TNT par le cable TV chaine normales et HD puis aussi qu'en je scrolle une page web.
De plus je remarque que les drivers NVIDIA me font planter ( freezer mon système)
#6 Re : -1 » Tearing vidéos saccadées sous NVIDIA G96 [GeForce 9500 GT] » Le 20/04/2013, à 15:50
- ferreol
- Réponses : 22
je n'ai pas de DVD original. entre temps j'en ai trouvé un et j'ai le même problème.
#7 Re : -1 » Tearing vidéos saccadées sous NVIDIA G96 [GeForce 9500 GT] » Le 20/04/2013, à 16:07
- ferreol
- Réponses : 22
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 02)
00:01.0 PCI bridge: Intel Corporation 82G33/G31/P35/P31 Express PCI Express Root Port (rev 02)
00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 01)
00:1c.2 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 3 (rev 01)
00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 01)
00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 01)
00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 01)
00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 01)
00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation NM10/ICH7 Family SATA Controller [IDE mode] (rev 01)
00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 01)
01:00.0 VGA compatible controller: NVIDIA Corporation G96 [GeForce 9500 GT] (rev a1)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
04:00.0 Ethernet controller: Atheros Communications Inc. AR5212/AR5213 Wireless Network Adapter (rev 01)
04:01.0 PCI bridge: Hint Corp HB6 Universal PCI-PCI bridge (non-transparent mode) (rev 13)
05:08.0 USB controller: NEC Corporation USB (rev 41)
05:08.1 USB controller: NEC Corporation USB (rev 41)
05:08.2 USB controller: NEC Corporation USB 2.0 (rev 02)
05:0b.0 FireWire (IEEE 1394): Texas Instruments TSB12LV26 IEEE-1394 Controller (Link)
#8 Re : -1 » Tearing vidéos saccadées sous NVIDIA G96 [GeForce 9500 GT] » Le 20/04/2013, à 16:32
- ferreol
- Réponses : 22
étrange tu me conseille une downgrade. Pourquoi? les pilotes sont mieux gérés?
Je le redis en tout cas merci pour ton aide
#9 Re : -1 » Tearing vidéos saccadées sous NVIDIA G96 [GeForce 9500 GT] » Le 21/04/2013, à 13:31
- ferreol
- Réponses : 22
non pas vraiment besoin d'une 12.10
Une downgrade est elle possible via les depots ou certaines lignes de commandes ou dois-je nécéssairement recommencer tout blanc de blanc.
#10 Re : -1 » Tearing vidéos saccadées sous NVIDIA G96 [GeForce 9500 GT] » Le 21/04/2013, à 13:37
- ferreol
- Réponses : 22
bon je vais tenter en esperant que tout roule car je dois tout me retaper ( rsnapshot , apache2...)
mais bon je backup tous mes fichiers de config donc cela devrait etre rapide;
Par contre dans ce cas de config tu consielles les drivers Nvidia libres ou dois je installer les proprios ( qui font geler mon PC en 12.10)
Je me lance.
#11 Re : -1 » Tearing vidéos saccadées sous NVIDIA G96 [GeForce 9500 GT] » Le 21/04/2013, à 14:31
- ferreol
- Réponses : 22
bon j ai reinstallé j'ai du tearing par défaut mais je fais d'abord toutes les majs puis je mettrai les pilotes Nvidia recommandés actifs. je te tiens au jus de toutes façon je suis gagnant j'avais installé la 12.10 sans faire gaffe que ce n'était pas une LTS
#12 Re : -1 » Tearing vidéos saccadées sous NVIDIA G96 [GeForce 9500 GT] » Le 28/04/2013, à 14:39
- ferreol
- Réponses : 22
bon quand même toujours le meme problème de Tearing c'est assez enervant mais je ferai avec.
Le pire c'est qu'à l'époque j'avais en plus acheté ma carte graphique en pensant NVIDIA c'est mieux. Chez mon père il a une ATI c'est la même cela Tear pas mal.
#13 Re : -1 » (4) Conky : Postez vos conkyrc ou certaines parties intéressantes » Le 19/08/2012, à 12:39
- ferreol
- Réponses : 2375
je vous poste mon mien qui change plus trop mais bon. Je voulais en fait rajoutter un cercle avec les infos Net up and down et ip mais je n ai plus le temps.
Uploaded with ImageShack.us
ci dessous le .conkyrc
# -- Conky settings -- #
background no
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
imlib_cache_size 0
# -- Window specifications -- #
own_window no
#own_window_type below
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
minimum_size 580 850
maximum_width 600
alignment tl
gap_x 1
gap_y 40
# -- Graphics settings -- #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
# -- Text settings -- #
use_xft yes
xftfont sans:size=12
xftalpha 0.8
uppercase no
default_color ffffff
# -- Lua Load -- #
lua_load ~/.conky/conky_widgets.lua
lua_draw_hook_pre widgets
TEXT
${goto 200}${font Coalition:size=16}${time %A}
${goto 220}${font Coalition:size=8}${time %d %B %Y}
${goto 230}${voffset 5}${font coalition:size=20}${time %H:%M:%S}
${goto 220}${font Coalition:size=8}${pre_exec lsb_release -d | cut -f 2| tr "[:upper:]" "[:lower:]"}
${goto 220}$sysname $machine $kernel
${goto 220}${voffset 5}${fs_bar 1,250 /}
${goto 220}${font Coalition:size=11}uptime $uptime
${goto 220}${execi 28800 ~/.conky/maj.sh}
${goto 220}${fs_bar 1,250 /}
${goto 170}${voffset 69}${font Coalition:size=13} CPU ${cpu 0}%
${goto 180}${font Coalition:size=7}hz ${freq_g cpu0}Ghz
${goto 170}${font Coalition:size=7}${top cpu 1}% ${top name 1}
${goto 200}${voffset 50}${font Coalition:size=13}MEM ${memperc}%
${goto 200}${font Coalition:size=7}${top_mem mem 1}% ${top_mem name 1}
${goto 210}$memfree / 1Go free
${goto 170}${voffset 55}${font Coalition:size=13}FS ${fs_used_perc}%
${goto 170}${font Coalition:size=7}/free ${fs_free /}
${goto 170}Data : ${fs_free /media/data}
${voffset 70}
${goto 50}${font Coalition:size=12}IPL: ${addr eth0} IPP: ${execi 6800 wget -q -O - http://ip.tupeux.com | tail}
${goto 50}${font Arrows#1:size=16}Q ${font Coalition:size=10}${totaldown eth0}$alignc ${downspeed eth0}/s
${goto 50}${font ARROWS#1:size=16}P ${font Coalition:size=10}${totalup eth0} $alignc${upspeed eth0}/s
${voffset 20}${goto 50}${fs_bar 1,250 /}
${font Coalition:size=10}${goto 50}wifi signal: ${wireless_link_qual wlan0}%
${goto 50}Mac ${wireless_ap wlan0}clock_rings.lua
--[[
Clock Rings by londonali1010 (2009) Edited by jpope
This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script. This script is based off a combination of my clock.lua script and my rings.lua script.
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num>5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num>3; conversely if you update Conky every 0.5s, you should use update_num>10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
lua_load ~/scripts/clock_rings.lua
lua_draw_hook_pre clock_rings
Changelog:
+ v1.0 -- Original release (30.09.2009)
v1.1p -- Jpope edit (05.10.2009)
]]
settings_table = {
{
-- Edit this table to customise your rings.
-- You can create more rings simply by adding more elements to settings_table.
-- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
name='time',
-- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
arg='%I.%M',
-- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
max=12,
-- "bg_colour" is the colour of the base ring.
bg_colour=0xffffff,
-- "bg_alpha" is the alpha value of the base ring.
bg_alpha=0.8,
-- "fg_colour" is the colour of the indicator part of the ring.
fg_colour=0xBFBFBF,
-- "fg_alpha" is the alpha value of the indicator part of the ring.
fg_alpha=0.2,
-- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
x=100, y=150,
-- "radius" is the radius of the ring.
radius=50,
-- "thickness" is the thickness of the ring, centred around the radius.
thickness=5,
-- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
start_angle=0,
-- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger than start_angle.
end_angle=360
},
{
name='time',
arg='%M.%S',
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0xE5E5E5,
fg_alpha=0.6,
x=100, y=150,
radius=56,
thickness=5,
start_angle=0,
end_angle=360
},
{
name='time',
arg='%S',
max=-1,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0xffffff,
fg_alpha=0.8,
x=100, y=150,
radius=62,
thickness=5,
start_angle=0,
end_angle=360
},
}
-- Use these settings to define the origin and extent of your clock.
clock_r=65
-- "clock_x" and "clock_y" are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.
clock_x=100
clock_y=150
show_seconds=true
require 'cairo'
function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
function draw_ring(cr,t,pt)
local w,h=conky_window.width,conky_window.height
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
local angle_0=sa*(2*math.pi/360)-math.pi/2
local angle_f=ea*(2*math.pi/360)-math.pi/2
local t_arc=t*(angle_f-angle_0)
-- Draw background ring
--~ cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
--~ cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
--~ cairo_set_line_width(cr,ring_w)
--~ cairo_stroke(cr)
-- Draw indicator ring
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
cairo_stroke(cr)
end
function draw_clock_hands(cr,xc,yc)
local secs,mins,hours,secs_arc,mins_arc,hours_arc
local xh,yh,xm,ym,xs,ys
secs=os.date("%S")
mins=os.date("%M")
hours=os.date("%I")
secs_arc=(2*math.pi/60)*secs
mins_arc=(2*math.pi/60)*mins+secs_arc/60
hours_arc=(2*math.pi/12)*hours+mins_arc/12
-- Draw hour hand
xh=xc+0.7*clock_r*math.sin(hours_arc)
yh=yc-0.7*clock_r*math.cos(hours_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xh,yh)
cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_line_width(cr,5)
cairo_set_source_rgba(cr,0.3,0.7,1,0.6)
cairo_stroke(cr)
-- Draw minute hand
xm=xc+clock_r*math.sin(mins_arc)
ym=yc-clock_r*math.cos(mins_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xm,ym)
cairo_set_line_width(cr,3)
cairo_stroke(cr)
-- Draw seconds hand
if show_seconds then
xs=xc+clock_r*math.sin(secs_arc)
ys=yc-clock_r*math.cos(secs_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xs,ys)
cairo_set_line_width(cr,1)
cairo_stroke(cr)
end
end
function conky_clock_rings()
local function setup_rings(cr,pt)
local str=''
local value=0
str=string.format('${%s %s}',pt['name'],pt['arg'])
str=conky_parse(str)
value=tonumber(str)
if pt['max'] == -1 then
pct=1
else
pct=value/pt['max']
end
draw_ring(cr,pct,pt)
end
-- Check that Conky has been running for at least 5s
if conky_window==nil then return end
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
local cr=cairo_create(cs)
local updates=conky_parse('${updates}')
update_num=tonumber(updates)
if update_num>5 then
for i in pairs(settings_table) do
setup_rings(cr,settings_table[i])
end
end
draw_clock_hands(cr,clock_x,clock_y)
endconky_widgets.lua
--[[
Conky Widgets by londonali1010 (2009)
This script is meant to be a "shell" to hold a suite of widgets for use in Conky.
To configure:
+ Copy the widget's code block (will be framed by --(( WIDGET NAME )) and --(( END WIDGET NAME )), with "[" instead of "(") somewhere between "require 'cairo'" and "function conky_widgets()", ensuring not to paste into another widget's code block
+ To call the widget, add the following just before the last "end" of the entire script:
cr = cairo_create(cs)
NAME_OF_FUNCTION(cr, OPTIONS)
cairo_destroy(cr)
+ Replace OPTIONS with the options for your widget (should be specified in the widget's code block)
Call this script in Conky using the following before TEXT (assuming you save this script to ~/scripts/conky_widgets.lua):
lua_load ~/scripts/conky_widgets.lua
lua_draw_hook_pre widgets
Changelog:
+ v1.0 -- Original release (17.10.2009)
]]
require 'cairo'
--[[ AIR CLOCK WIDGET ]]
--[[ Options (xc, yc, size):
"xc" and "yc" are the x and y coordinates of the centre of the clock, in pixels, relative to the top left of the Conky window
"size" is the total size of the widget, in pixels ]]
function air_clock(cr, xc, yc, size)
local offset = 0
shadow_width = size * 0.03
shadow_xoffset = 0
shadow_yoffset = size * 0.01
if shadow_xoffset >= shadow_yoffset then
offset = shadow_xoffset
else offset = shadow_yoffset
end
local clock_r = (size - 2 * offset) / (2 * 1.25)
show_seconds=true
-- Grab time
local hours=os.date("%I")
local mins=os.date("%M")
local secs=os.date("%S")
secs_arc=(2*math.pi/60)*secs
mins_arc=(2*math.pi/60)*mins
hours_arc=(2*math.pi/12)*hours+mins_arc/12
-- Drop shadow
local ds_pat=cairo_pattern_create_radial(xc+shadow_xoffset,yc+shadow_yoffset,clock_r*1.25,xc+shadow_xoffset,yc+shadow_yoffset,clock_r*1.25+shadow_width)
cairo_pattern_add_color_stop_rgba(ds_pat,0,0,0,0,0.2)
cairo_pattern_add_color_stop_rgba(ds_pat,1,0,0,0,0)
cairo_move_to(cr,0,0)
cairo_line_to(cr,conky_window.width,0)
cairo_line_to(cr,conky_window.width, conky_window.height)
cairo_line_to(cr,0,conky_window.height)
cairo_close_path(cr)
cairo_new_sub_path(cr)
cairo_arc(cr,xc,yc,clock_r*1.25,0,2*math.pi)
cairo_set_source(cr,ds_pat)
cairo_set_fill_rule(cr,CAIRO_FILL_RULE_EVEN_ODD)
cairo_fill(cr)
-- Glassy border
cairo_arc(cr,xc,yc,clock_r*1.25,0,2*math.pi)
cairo_set_source_rgba(cr,0.5,0.5,0.5,0.2)
cairo_set_line_width(cr,1)
cairo_stroke(cr)
local border_pat=cairo_pattern_create_linear(xc,yc-clock_r*1.25,xc,yc+clock_r*1.25)
cairo_pattern_add_color_stop_rgba(border_pat,0,1,1,1,0.7)
cairo_pattern_add_color_stop_rgba(border_pat,0.3,1,1,1,0)
cairo_pattern_add_color_stop_rgba(border_pat,0.5,1,1,1,0)
cairo_pattern_add_color_stop_rgba(border_pat,0.7,1,1,1,0)
cairo_pattern_add_color_stop_rgba(border_pat,1,1,1,1,0.7)
cairo_set_source(cr,border_pat)
cairo_arc(cr,xc,yc,clock_r*1.125,0,2*math.pi)
cairo_close_path(cr)
cairo_set_line_width(cr,clock_r*0.25)
cairo_stroke(cr)
-- Set clock face
cairo_arc(cr,xc,yc,clock_r,0,2*math.pi)
cairo_close_path(cr)
local face_pat=cairo_pattern_create_radial(xc,yc-clock_r*0.75,0,xc,yc,clock_r)
cairo_pattern_add_color_stop_rgba(face_pat,0,1,1,1,0.9)
cairo_pattern_add_color_stop_rgba(face_pat,0.5,1,1,1,0.9)
cairo_pattern_add_color_stop_rgba(face_pat,1,0.9,0.9,0.9,0.9)
cairo_set_source(cr,face_pat)
cairo_fill_preserve(cr)
cairo_set_source_rgba(cr,0.5,0.5,0.5,0.2)
cairo_set_line_width(cr, 1)
cairo_stroke (cr)
-- Draw hour hand
xh=xc+0.7*clock_r*math.sin(hours_arc)
yh=yc-0.7*clock_r*math.cos(hours_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xh,yh)
cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_line_width(cr,5)
cairo_set_source_rgba(cr,0,0,0,0.5)
cairo_stroke(cr)
-- Draw minute hand
xm=xc+0.9*clock_r*math.sin(mins_arc)
ym=yc-0.9*clock_r*math.cos(mins_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xm,ym)
cairo_set_line_width(cr,3)
cairo_stroke(cr)
-- Draw seconds hand
if show_seconds then
xs=xc+0.9*clock_r*math.sin(secs_arc)
ys=yc-0.9*clock_r*math.cos(secs_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xs,ys)
cairo_set_line_width(cr,1)
cairo_stroke(cr)
end
end
--[[ END AIR CLOCK WIDGET ]]
--[[ RING WIDGET ]]
--[[ Options (name, arg, max, bg_colour, bg_alpha, xc, yc, radius, thickness, start_angle, end_angle):
"name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
"arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
"max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
"bg_colour" is the colour of the base ring.
"bg_alpha" is the alpha value of the base ring.
"fg_colour" is the colour of the indicator part of the ring.
"fg_alpha" is the alpha value of the indicator part of the ring.
"x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
"radius" is the radius of the ring.
"thickness" is the thickness of the ring, centred around the radius.
"start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
"end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger (e.g. more clockwise) than start_angle. ]]
function ring(cr, name, arg, max, bgc, bga, fgc, fga, xc, yc, r, t, sa, ea)
local function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
local function draw_ring(pct)
local angle_0=sa*(2*math.pi/360)-math.pi/2
local angle_f=ea*(2*math.pi/360)-math.pi/2
local pct_arc=pct*(angle_f-angle_0)
-- Draw background ring
cairo_arc(cr,xc,yc,r,angle_0,angle_f)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
cairo_set_line_width(cr,t)
cairo_stroke(cr)
-- Draw indicator ring
cairo_arc(cr,xc,yc,r,angle_0,angle_0+pct_arc)
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
cairo_stroke(cr)
end
local function setup_ring()
local str = ''
local value = 0
str = string.format('${%s %s}', name, arg)
str = conky_parse(str)
value = tonumber(str)
if value == nil then value = 0 end
pct = value/max
draw_ring(pct)
end
local updates=conky_parse('${updates}')
update_num=tonumber(updates)
if update_num>5 then setup_ring() end
end
--[[ END RING WIDGET ]]
function conky_widgets()
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
cr = cairo_create(cs)
air_clock(cr, 120, 120, 200) -- options: xc, yc, size
cairo_destroy(cr)
cr = cairo_create(cs)
ring(cr, 'cpu', 'CPU0', 100, 0xFFFFFF, 0.2, 0xFFFFFF, 0.8, 220, 300, 50, 10, 0, 180) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
cairo_destroy(cr)
cr = cairo_create(cs)
ring(cr, 'memperc', '', 100, 0xFFFFFF, 0.2, 0xFFFFFF, 0.8, 220, 400, 50, 10, 180, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
cairo_destroy(cr)
cr = cairo_create(cs)
ring(cr, 'fs_used_perc', '/', 100, 0xFFFFFF, 0.2, 0xFFFFFF, 0.8, 220, 500, 50, 10, 0, 180) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
cairo_destroy(cr)
endle script des Majs
#!/bin/bash
# Conky script for displaying available updates
# in Debian. This script assumes you are in the
# sudo group and require no password for root
# access. Add something as such to your conkyrc:
#${color}APT: ${color D7D3C5}${execi 28800 ~/bin/debupdates.sh}
sudo apt-get -qy update > /dev/null
NUMOFUPDATES=$(aptitude search "~U" | wc -l)
echo $NUMOFUPDATES Updates Availablele tout à mettre dans un dossier /home/xxxxxxxxxxxx/.conky (xxxxxxxxxx est votre user)
enfin ci dessous dans home le conky.sh
#!/bin/bash
sleep 20 && conky -c /home/eee/.conky/.conkyrc ;#14 Re : -1 » (4) Conky : Postez vos conkyrc ou certaines parties intéressantes » Le 28/10/2012, à 15:00
- ferreol
- Réponses : 2375
Allez je reposte avec quelques mises à jour programme TV , BBC Headlines , et Meteo
http://imageshack.us/photo/my-images/44 … ot11b.png/
http://imageshack.us/f/442/screenshot11b.png/
modération: merci de mettre une miniature si tu veux mettre en screenshoot
je te renvoie au Règles du forum
#15 Re : -1 » (4) Conky : Postez vos conkyrc ou certaines parties intéressantes » Le 27/11/2012, à 22:40
- ferreol
- Réponses : 2375
Bonjour,
Un petit soucis pour afficher le cours de l'once d'or avec wget. Si quelqu'un peut m'expliquer pourquoi cea ne fonctionne pas je précise je maitrise mal le WGET :
${goto 50}XAU ${execi 3600 wget -q -O - "http://www.forexpros.fr/currencies/xau-usd"|grep "<quotes_summary_secondary_data">"|sed 's/<[^>]*>//g'}Merci par avance de m'expliquer si possible.
Jusque la j'avais réussi en pompant a droite a gauche EUR / USD , programme TV , Météo
#16 Re : -1 » (4) Conky : Postez vos conkyrc ou certaines parties intéressantes » Le 27/11/2012, à 23:46
- ferreol
- Réponses : 2375
merci c 'est mieux en effet et sais tu comment couper le Grep après disons 1748.75
#17 Re : -1 » (4) Conky : Postez vos conkyrc ou certaines parties intéressantes » Le 01/12/2012, à 16:15
- ferreol
- Réponses : 2375
Excusez moi d'abuser mais je voudrais aussi afficher le cours du caoutchouc RSS_3 en USD depuis ce site
http://rubberboard.org.in/internationalrubberprice.asp
grace a wget et Grep mais j'ai du mal
J'ai mis cela mais rien
${goto 50}RSS3 ${execi 3600 wget -q -O - "http://rubberboard.org.in/rubberprice.asp?url=internationalrubberprice.asp"|grep "BANGKOK"|sed 's/<[^>]*>//g'}USDMerci par avance pour votre aide.
#18 Re : -1 » (4) Conky : Postez vos conkyrc ou certaines parties intéressantes » Le 02/12/2012, à 19:28
- ferreol
- Réponses : 2375
Merci pour votre aide .
Grep sed cut c'est tres puissant parfois complexe a la synthaxe . J 'ai essaye de trouver des TUTOS mais je vais pratiquer
wget -q -O - "http://rubberboard.org.in/internationalrubberprice.asp" |sed 's/<[^>]*>//g' | grep BANGKOK | sed 's/RSS-3/ /' | sed 's/RSS-4/ /' | awk '{print $11}' | cut -c16-21298.95
Merci encore
#19 Re : -1 » (4) Conky : Postez vos conkyrc ou certaines parties intéressantes » Le 03/12/2012, à 09:11
- ferreol
- Réponses : 2375
en effet ton lien est très riche merci hier j'avais trouvé sans avoir vu ta réponse.
Par contre le cut avec le nombre de caractères peux changer en fonction des variations précédentes.
Ne peut'on pas faire un cut sur la colonne du tableau ?
#20 Re : -1 » (4) Conky : Postez vos conkyrc ou certaines parties intéressantes » Le 03/12/2012, à 10:11
- ferreol
- Réponses : 2375
en effet mais on print deja la colonne et on cut les caractères cependant si la variation est plus grande que 10% alors on ne cut pas les bons
wget -q -O - "http://rubberboard.org.in/internationalrubberprice.asp" |sed 's/<[^>]*>//g' | grep BANGKOK | sed 's/RSS-3/ /' | sed 's/RSS-4/ /' | awk '{print $11}'16,496.00-7.00302.553.58dans la colonne uniquement une cellule m'interesse
#21 -1 » media Center update » Le 17/01/2013, à 17:46
- ferreol
- Réponses : 3
Hello , pour un PC sur la Télé je recherche des solutions répondant au cahier de charges suivant :
- Belle interface
- client Mail Intégré
- Support TNT ( inc. chaines HD et le son) plus enrregistrement
- Support princpaux formats Videos ( la aussi tous le font je crois)
- Fonction recherche (I.e Musique j'ai 30 000 morceaux et quelques 100 000 photos).
- support télécommande voire contrôle par smartphone sous android ( pas par VNC).
- Navigation internet intégrée ( pas seulement youtube).
- possibilité de sortir du mode media center pour revenir a l'interface normale ( bon cela tous peuvent le faire je crois)
- Tranmission / torrent client intégré
- Skype intégré (la cela va etre dur).
- Conky intégré La j'exagère peut etre.
J'ai testé XBMC il y a un an mais pas de fonction recherche ni de navigation internet digne du nom in the box
Merci par avance.
#22 Re : -1 » media Center update » Le 17/01/2013, à 23:41
- ferreol
- Réponses : 3
merci en effet l entree programme je connaissais mais on ne peut pas vraiment dire que cela soit integre. xbmc a meme un pauvre navigateur aussi.
par contre la fonction recherche ou se trouve t elle?
enfin skype j'oubliais mais le je pense qu il n ai pas integre... a aucun media center car proprio
je vais retenter xbmc voir mythtv que je n ai jamais essaye
#23 -1 » Coup de Gueule Flashplayer sous Ubuntu » Le 19/05/2012, à 09:59
- ferreol
- Réponses : 1
Hello,
Juste pour pousser un coup de gueule car cela commence à m’énerver ce Flash sous Ubuntu.
Le problème a certes évolué et Flash est un monstre de langage fermé malheureusement inévitable mais sous ubuntu le nombre de problèmes devient préoccupant.
Je pense être passé par tous depuis Dapper jusqu'à Natty.
Entre autre l'effet Tearing ( déchirement) , l'effet Stroumphe (bleutage des videos) , le manque de son (pulseaudio) , et le saccadé qui lui est presque omniprésent malgré Core2duo , 3 go de Ram , Nvidia etc.
Tout ce règle et dérègle mais Bref ceci est juste une remonté d'information rien de plus car cela devient lourd.
A plus Ubunteros
#24 Re : -1 » XBMC Upnp problème controle » Le 08/05/2012, à 23:49
- ferreol
- Réponses : 1
Je me réponds à moi même mais le problème persiste:
Je pense que cela vient de cette ligne
#0 0x0177f079 in SDL_JoystickUpdate () from /usr/lib/libSDL-1.2.so.0
j ai une souris et un clavier sans fil cela pourrait etre cela



